Hmmm...I see there's an open bug report against libc6 for this since September 28th, 2001 (Heh, I guess that's why downgrading to libc6-2.2.5-6 didn't help:P). It's exactly the problem I mentioned, except that the original reporter only saw the behavior in telnet.
It's extremely odd, because gethostbyname() will return the address from /etc/hosts, however every program I've tried (with the notable exception of 'ping') tries DNS first, then /etc/hosts if there's no DNS entry. Can anyone repeat this problem? I imagine everyone must be having it...And if so, are there any workarounds anyone can think of?:) - James > -----Original Message----- > From: James L. Morton [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 04, 2002 3:54 PM > To: [EMAIL PROTECTED] > Subject: RE: Hosts/DNS Problems w/ new Woody installs > > > Sorry - I should've been more clear...I used telnet only as > an example. I've found nothing except 'ping' that picks up > the correct address (e.g., lynx www.yahoo.com gets me > yahoo.com, instead of the local > webserver.) > > It seems that on other boxen telnet does pick up on the hosts file. > > - James > > > -----Original Message----- > > From: Marcelo Ramos [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, September 04, 2002 3:49 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Hosts/DNS Problems w/ new Woody installs > > > > > > On Wed, 4 Sep 2002 14:01:48 -0700 > > "James L. Morton" <[EMAIL PROTECTED]> wrote: > > > > > I recently installed woody on 3 seperate boxes. On all of > > them, DNS > > > seems to be taking precendence over the hosts file, despite > > the fact > > > that nsswitch.conf is configured to look at hosts first. To make > > > matters even more strange, ping gets the correct (hosts) address, > > > while all other programs get the incorrect (DNS) version. > > > > Probably your setup is correct. I believe that telnet do a > > dns reverse lookup previous to the conection itself. Now > www.yahoo.com resolves to 66.218.71.80 not to 192.168.10.1, > then the connection goes to 66.218.71.80. > > > -- > ______________________________________________________ > ______ _____________ > Marcelo Ramos | \/ __ | > Debian 3.0 GNU/Linux 2.2.20 | |_/ / > Linux registered user #118109 | \ > [EMAIL PROTECTED] |_____|\/|_____|\______\ > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]