Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2006 10:44:52 -0400
From:      Ken Stevenson <ken@allenmyland.com>
To:        Matthias.Apitz@Sisis.de
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/resolv.conf with 3 nameservers
Message-ID:  <443A6F64.70701@allenmyland.com>
In-Reply-To: <20060410135448.GA10388@rebelion.Sisis.de>
References:  <20060410135448.GA10388@rebelion.Sisis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
guru@Sisis.de wrote:
> Hi,
> 
> The man page of resolv.conf claims:
> 
>      The different configuration options are:
> 
>      nameserver  Internet address (in dot notation) of a name server that the
>                  resolver should query.  Up to MAXNS (currently 3) name
>                  servers may be listed, one per keyword....
> 
> I've three DNS server in my /etc/resolv.conf in 6.0-REL:
> 
> $ cat /etc/resolv.conf
> domain Sisis.de
> nameserver 10.0.1.201
> nameserver xxx.xxx.xxx.xxx
> nameserver yyy.yyy.yyy.yyy
> 
> But only the 1st one (10.0.1.201) is contacted to make the name lookup
> (I've checked this with trussing a 'ping whatever.domain.com') and if
> it does not know the addr, while the second one would know it, it does
> not resolve.
> 
> Do I miss something?
> Thx
> 
> 	matthias
> 
I think the problem is that once your first server responds with a 
"domain not found", that's considered an answer to your query. It 
doesn't try another DNS server just to see if it gets a different 
answer. If you were to disable the DNS server on 10.0.1.201, then it 
would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.

-- 
Ken Stevenson
Allen-Myland Inc.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?443A6F64.70701>