On Sat, Apr 05, 2008 at 06:36:42PM +0200, Lluis wrote: > El Thu, Apr 03, 2008 at 02:44:41PM -0600, Bdale Garbee ens deleit? amb les > seg?ents paraules: > > > > On Thu, 2008-04-03 at 20:47 +0200, Lluis wrote: > >> El Thu, Apr 03, 2008 at 12:11:17PM -0600, Bdale Garbee ens deleit amb les > >> segents paraules: > >>> > >>> On Fri, 2008-03-14 at 20:38 +0100, Lluis wrote: > >>> > >>>> 127.0.0.1 localhost > >>>> 127.0.0.1 hostname.domain hostname > >>> > >>> I'm not accustomed to seeing two lines for the same IP address > >>> in /etc/hosts, I'm not sure that's a good idea... it's hard to decide > >>> what behavior should really rbe expected in this case. > >>> > >>> What happens if you combine the entries into one line like this? > >>> > >>> 127.0.0.1 hostname.domain hostname localhost > >> > >> I tried with > >> 127.0.0.1 localhost hostname > >> and it didn't work. > > > > That kind of makes sense, since the first entry on the first line with a > > given IP address is the canonical name for that address. Note that my > > example didn't have localhost at the start of the line. > > All right, I tried it with > > 127.0.0.1 hostname.domain hostname localhost > > and it did indeed work :) > > So it seems like a result ordering issue (maybe not all results from > 'getaddrinfo' are checked?) IIRC debian's glibc's getaddrinfo doesn't actually return multiple hostname aliases for a given address (I researched this a bit WRT #456672). I think glibc borrows this resolv/ code from BIND, and BIND doesn't implement all the necessary things due to threading issues.
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]