*BSD News Article 21826


Return to BSD News archive

Xref: sserve comp.os.386bsd.development:1285 comp.os.386bsd.bugs:1544 comp.os.386bsd.questions:5591
Newsgroups: comp.os.386bsd.development,comp.os.386bsd.bugs,comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!usenet.ucs.indiana.edu!bigbang.astro.indiana.edu!pitts
From: pitts@bigbang.astro.indiana.edu (Jim Pitts)
Subject: Re: I want to discuss hostname resolution (+bug report)
Message-ID: <CEDL8o.8o8@usenet.ucs.indiana.edu>
Sender: news@usenet.ucs.indiana.edu (USENET News System)
Nntp-Posting-Host: bigbang.astro.indiana.edu
Organization: Indiana University Astrophysics, Bloomington, IN
References: <HERRING.93Oct1095726@loke.iesd.auc.dk>
Date: Mon, 4 Oct 1993 13:53:12 GMT
Lines: 38

In article <HERRING.93Oct1095726@loke.iesd.auc.dk> herring@iesd.auc.dk (B. Erickson Herring) writes:
>Hi *BSDers,
>
>My NetBSD-0.9 machine is irritating me.  It refuses to resolve
>`locahost' when the file /etc/resolv.conf exists.  That is, it _never_
>looks in /etc/hosts unless res_search() sets `errno' to ECONNREFUSED
>in gethostbyname().  This problem must have been noticed by others, as
>I cannot believe that everyone has `localhost.your.domain.here' in
>their nameserver.
>

Try something in /etc/resolv.conf line (DO NOT USE TABS):

--------------------------------
;
; BIND data file.
;
domain .
nameserver 129.79.1.9
nameserver 129.79.1.15
nameserver 129.79.254.192
--------------------------------

Of course, you will have to put the IP addresses of your local nameservers
in here.  The machine will look in the /etc/hosts first to resolv names.
If it is not there it goes to the first 'nameserver' listed, then the
second, then the third, etc.

I usually pick a primary nameserver that the univ. tells me to user.  Then
I pick an alternate just in case the primary is down.  Finally, I will pick
one outside the subnet of the primary/secondary server just in case that
link goes down.

You might know all thi already, but I mention it for the benifit of those
who don't (and to my benifit if I am incorrect in my understanding).

					Jim Pitts
					pitts@bigbang.astro.indiana.edu