When I saw this, I thought "/etc/nsswitch.conf"... I was unaware that there had been a different file performing this function in the past. Apparently glibc's gethostbyname() switched to using /etc/nsswitch.conf in place of the /etc/host.conf used by libc5's implementation of gethostbyname().
So much history... I must have slept too much in class... :) On Wed, 27 Mar 2002, Matt Roper wrote: > What does your /etc/host.conf contain? I think it should have a line > which says > > order hosts,bind > > which tells programs to first check /etc/hosts and then try a DNS > lookup if that fails. > > > Matt > > On Wed, Mar 27, 2002 at 09:49:46AM -0800, Peter Jay Salzman wrote: > > on my laptop, i can't use any of the hostnames on my home network. in > > other words, "ping satan" yields "unknown host". all my other systems > > can ping the laptop. > > > > using strace on satan and doing a "ping laptop", i found that ping first > > reads /etc/hosts.conf, and then reads /etc/hosts. > > > > however, on the laptop, it reads /etc/hosts.conf and then does NOT read > > /etc/hosts. ping seems to be ignoring /etc/hosts (which is set up > > correctly). > > > > using md5sum, i determined that ping is the same on the laptop and > > satan. > > > > ok, so i know exactly what the problem is: for some reason, ping isn't > > consulting /etc/hosts. and neither is telnet-ssl and ftp. > > > > now the question is -- why? i've never seen this before. everything > > else i can think of looks healthy. > > > > > > pete > > _______________________________________________ > > vox-tech mailing list > > [EMAIL PROTECTED] > > http://lists.lugod.org/mailman/listinfo/vox-tech > > -- > > ************************************************* > * Matt Roper <[EMAIL PROTECTED]> * > * http://www.mattrope.com * > * PGP Key: http://www.mattrope.com/mattrope.asc * > ************************************************* > _______________________________________________ > vox-tech mailing list > [EMAIL PROTECTED] > http://lists.lugod.org/mailman/listinfo/vox-tech > --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<[EMAIL PROTECTED]> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...2k --------------------------------------------------------------------------- _______________________________________________ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
