*BSD News Article 98471


Return to BSD News archive

From: geecee@netquarters.net (Gary Chambers)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Name resolution in BSDI question
References: <5or6fb$bsh@uwm.edu>
Message-ID: <slrn5r2vjb.7.geecee@burbot.netquarters.net>
X-Newsreader: slrn (0.9.3.2 UNIX)
NNTP-Posting-Host: burbot.netquarters.net
Date: 25 Jun 97 20:23:40 GMT
Lines: 21
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!newsfeed.internetmci.com!newshost.cybertours.com!geecee
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:7049

>When I do name resolution, I would like the system to read the hosts
>file first and then go to the dns (instead of dns - resolv.conf).  How
>can I achieve this??
>In the newer operating systems, you can specify this in nsswitch.conf or 
>similar.  But in BSDI 1.0 how can I do that???

I ran-across the same problem when I was first setting-up 3.0.  I had
to change the order in /etc/irs.conf -- here's what I did:

hosts		local	continue
hosts		dns

-- 
GeeCee/NQ

//------------------------------------------
// Gary Chambers <geecee@netquarters.net>
// NetQuarters, Inc., Brunswick, ME 04011
// 207-798-8400 (Voice) 207-798-8403 (Fax)
// Midcoast Maine's Internet Provider
//------------------------------------------