*BSD News Article 82364


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!vixen.cso.uiuc.edu!newsfeed.internetmci.com!in3.uu.net!news.euro.net!helpdesk.euronet.nl!sake
From: sake@helpdesk.euronet.nl (Sake Blok)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: order of named and hosts
Date: 5 Nov 1996 16:25:36 GMT
Organization: EuroNet Internet
Lines: 26
Message-ID: <55npq0$8br@news.euro.net>
References: <55la8h$ce@kauss.rhein-main.de>
Reply-To: sake@euro.net
NNTP-Posting-Host: helpdesk.euronet.nl
X-Newsreader: TIN [version 1.2 PL2]

Stephan Kauss (ska@kauss.rhein-main.de) wrote:


: is it posible to set the order which freebsd get the IP addr. from a hostname.
: I have all information for my hosts of  the local network in the /etc/hosts 
: file. If the DNS server don't run (at this point I also have no Internet 
: access it is the gateway) FreeBSD take about 2 min to get the name and 
: IP adr. from the /etc/hosts file. I think FreeBSD try to ask the named which 
: is not able to call the DNS name server. The right name I ask for is in 
: the /etc/hosts.

You can change that in the /etc/host.conf file. Put the entry 'hosts' first
and 'bind' second to first look in the /etc/hosts file and then use DNS.

Greetings,


Sake
--
     +------------------- There is a purpose to time: --------------------+
     | Sake Blok                                         EuroNet Internet |
     | e-mail: sake@euro.net                          Herengracht 208-214 |
     | http://www.euronet.nl/~sake                     1016 BS  Amsterdam |
     | telephone: +31 (0)20 625 6161                      The Netherlands |
     +---------- It prevents everything from happening at once.-----------+