Resolver not always resolving hostnames

Doug Barton dougb at FreeBSD.org
Sun Oct 22 23:23:55 UTC 2006


Simon L. Nielsen wrote:

> I also seen odd things happen with host(1).  These two commands were
> run right after each other.  I don't know if it's related, but I
> suspect it is.
> 
> $ host cvsup3.dk.freebsd.org
> cvsup3.dk.freebsd.org is an alias for mirror03.inet.tele.dk.
> cvsup3.dk.freebsd.org is an alias for mirror03.inet.tele.dk.

You got a double answer here because by default host(1) searches for 
both A and AAAA records for hostnames.

> $ host cvsup3.dk.freebsd.org
> cvsup3.dk.freebsd.org is an alias for mirror03.inet.tele.dk.
> mirror03.inet.tele.dk has address 195.41.53.219

You got an answer for the A query here for mirror03.inet.tele.dk.

> cvsup3.dk.freebsd.org is an alias for mirror03.inet.tele.dk.

You got an answer here for the AAAA query for cvsup3.dk.freebsd.org.

> cvsup3.dk.freebsd.org is an alias for mirror03.inet.tele.dk.

This is probably an error, and if it's what I think it is this problem 
is fixed in the latest version of BIND.

Whether this behavior of chasing AAAA by default is a good thing or 
not is an open question, but there you go.

hth,

Doug

-- 

     This .signature sanitized for your protection


More information about the freebsd-current mailing list