*BSD News Article 58799


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!zib-berlin.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: resolv.conf question
Date: 3 Jan 1996 22:07:04 GMT
Organization: Private BSD site, Dresden
Lines: 26
Message-ID: <4ceum8$kpg@uriah.heep.sax.de>
References: <4caval$sr0@gol2.gol.com> <4ccajp$19d@chinx4.thoughtport.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

Chad Attermann <chada@censoft.com> writes:

>   For example, with a line in /etc/resolv.conf like
> 
> 	domain this.net that.net
> 
> Then nslookup would with a query of 'host' would first search for
> 'host.this.net' and then 'host.that.net', and lastly just 'host'

Nope, this clause is called `search', not `domain'.  domain and search
clauses are mutually exclusive; the last one that is found in the file
``wins''.  Thus, it's entirely possible to have a resolv.conf like:

nameserver 1.2.3.4
nameserver 2.3.4.5
domain  foo.bar.com
search  foo.bar.com mumble.bar.com wizzle.org

where the `domain' solely serves a ``comment'' purpose.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)