Shakespeer icon indicating copy to clipboard operation
Shakespeer copied to clipboard

Cannot resolve hubs with a .local hostname

Open rufuscoder opened this issue 13 years ago • 3 comments

Original author: [email protected] (December 21, 2008 12:27:36)

What steps will reproduce the problem?

  1. Attempt to connect to a hub with a .local hostname
  2. UI recieves status message 'Failed to lookup "whatever.local": request timed out'

What version of the product are you using? On what operating system? 0.9.10 PPC

Please provide any additional information below.

It seems io_lookup in io.c will correctly resolve .local addresses, but it seems this is not used, in favour of evdns_resolve_ipv4 which does not correctly resolve these .local addresses.

Original issue: http://code.google.com/p/shakespeer/issues/detail?id=98

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on December 21, 2008 13:40:53 I wonder how we can change the code so that any hostname that is legal will work. A more general solution would be nice.

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on December 21, 2008 15:27:17 I didn't intend the attached diff to be a correct solution, just what I used to get the behaviour I wanted -- poorly named and leaking hostent; I believe gethostbyname () is the OneTrueWay(tm) to resolve hostnames, so this is arguably a bug in libevent.

Aside from a non blocking lookup, I couldn't see why io_lookup was not used to resolve addresses.

rufuscoder avatar Jun 08 '13 21:06 rufuscoder

From [email protected] on February 05, 2009 09:37:41 Martin, you have any comments on this?

rufuscoder avatar Jun 08 '13 21:06 rufuscoder