Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!iafrica.com!pipex-sa.net!hole.news.pipex.net!pipex!bowl.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.mathworks.com!fu-berlin.de!news.th-darmstadt.de!odb!incom!kauss.rhein-main.de!kauss.rhein-main.de!not-for-mail From: ska@kauss.rhein-main.de (Stephan Kauss) Newsgroups: comp.unix.bsd.freebsd.misc Subject: order of named and hosts Date: 4 Nov 1996 18:48:01 +0100 Organization: Stephan Kauss Lines: 20 Message-ID: <55la8h$ce@kauss.rhein-main.de> NNTP-Posting-Host: kauss.rhein-main.de X-Newsreader: TIN [version 1.2 PL2] Hi all, 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. Is there a way to tell the system which file is for the first lookup and if this fail it cut ask the named. Under Solaris 2.x there is a file called /etc/nsswitch.conf here I am able to set the sequence in which the machine has to find out the IP address. Thanks Stephan