/etc/resolv.conf with 3 nameservers

Ken Stevenson ken at allenmyland.com
Mon Apr 10 14:45:18 UTC 2006

guru at 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
> nameserver xxx.xxx.xxx.xxx
> nameserver yyy.yyy.yyy.yyy
> But only the 1st one ( 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, then it 
would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.

Ken Stevenson
Allen-Myland Inc.

More information about the freebsd-questions mailing list