Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!news.telstra.net!psgrain!charnel.ecst.csuchico.edu!news.wco.com!HSNX.wco.com!hub.org!news.maxwell.syr.edu!europa.clark.net!newsfeed.internetmci.com!news.cyberport.net!myke From: myke@phluffy.cyberport.net (Mike Holling) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Nslookup and host versus ftp, ping, etc. - strange problem Date: 7 Mar 1997 18:38:37 GMT Organization: Cyberport Montana. Lines: 16 Message-ID: <slrn5i0o5d.i5.myke@phluffy.cyberport.net> References: <331e3940.135979897@news.diac.com> <5fobfg$j4g$1@easystreet03> Reply-To: myke@cyberport.net NNTP-Posting-Host: phluffy.cyberport.net X-Newsreader: slrn (0.9.2.1 BETA UNIX) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:36710 In article <5fobfg$j4g$1@easystreet03>, Ted Mittelstaedt wrote: >2) You can modify the source for libresolv so that it falls back to >your own HOSTS file no matter what before returning with a host >unknown, then recompile everything that uses it. Can't you use /etc/host.conf to configure this? If you have hosts bind in /etc/host.conf it *should* always try the host table first. I'm not sure if the resolver routines honor this, but it's worth a shot. This mechanism is much more formalized in SysV-based Unices... - Mike