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!howland.reston.ans.net!blackbush.xlink.net!news.uni-mainz.de!news.th-darmstadt.de!uni-erlangen.de!news.tu-chemnitz.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: 2 Jan 1996 22:51:29 GMT Organization: Private BSD site, Dresden Lines: 36 Message-ID: <4cccth$gsc@uriah.heep.sax.de> References: <4cbf54$evp@ns1.tstt.net.tt> 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 feisal@tstt.net.tt writes: > The "domain" in the /etc/resolv.conf says what is your default > domain i.e. what will be appended by default to any DNS query. More exactly, it specifies the default search order. The algorithm is, first the full domain is appended, and a search tried. If it fails, leading domain name components will be stripped, and the search retried, until the search succeeded, or only a second-level domain remains. So, if your domain is set to "foo.bar.mumble.com", each search for "grumble" is attempted as grumble.foo.bar.mumble.com grumble.bar.mumble.com grumble.mumble.com and then it's given up. This is functionally equivalent to putting a search foo.bar.mumble.com bar.mumble.com mumble.com clause into your /etc/resolv.conf, except that the `search' clause allows more weird cases. Yet another example: my domain is heep.sax.de. This implies the default search order to be "heep.sax.de sax.de". I've overridden this with search heep.sax.de sax.de freebsd.org interface-business.de -- 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. ;-)