Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsxfer.itd.umich.edu!agate!news.mindlink.net!van-bc!io.org!nobody From: taob@io.org (Brian Tao) Newsgroups: comp.unix.bsd.bsdi.misc Subject: How to consult /etc/hosts before DNS? Date: 1 Oct 1995 14:32:30 -0400 Organization: Internex Online (io.org) Data: 416-363-4151 Voice: 416-363-8676 Lines: 10 Message-ID: <44mmru$sa6@ionews.io.org> NNTP-Posting-Host: trepan.io.org Is it possible under BSD/OS 2.0 to convince the name resolution routines to look up host-to-IP mappings in /etc/hosts before attempting a DNS query? Under FreeBSD, there is a file called /etc/host.conf that allows you to select the order of services used to resolve names. BSD/OS does not appear to use the same mechanism. Is this possible at all? -- Brian Tao <taob@io.org> System Administrator, Internex Online Inc. "Though this be madness, yet there is method in't"