*BSD News Article 51583


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!recepsen.aa.msen.com!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: resolv.conf
Date: 24 Sep 1995 23:11:13 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 26
Message-ID: <444l21$3t0@uriah.heep.sax.de>
References: <4410om$jgf@news.bu.edu>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Mikhail Teterin <mi@cs.bu.edu> wrote:
>I have a few domains listed in my /etc/resolv.conf
>There names which hapen to be on more then 1 domain (hosts
>name.domain1.com name.domain2.edu, for example). When I try
>to connect to name, I normally get name.domain2.edu, even if
>domain2.edu is listed _after_ domain1.com in {subj}. Any way
>to control the order, or this simply happens because nameser-
>ver responds faster on domain2.edu (why? the machine itself
>sits on domain1.com...)? Thank you!

Yup, perhaps read a good book about BIND?

You can only be in one domain (obviously).  The last one wins.  The
default search order for "domain foo.bar.bang" is then to search an
unqualified host first in "foo.bar.bang", then in "bar.bang", then
give up.

The keyword "search" can be used to define an alternate search
sequence.  As above, the last one wins (also over a previous "domain"
clause).  "domain foo.bar.bang" is identical to saying "search
foo.bar.bang bar.bang".
-- 
cheers, J"org

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