Bug 81465

Summary: /bin/host: resolver is not working properly when INET6 is not in kernel and nameserver is dual
Product: Base System Reporter: Piotr Kucharski <chopin>
Component: binAssignee: Doug Barton <dougb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.11-RELEASE   
Hardware: Any   
OS: Any   

Description Piotr Kucharski 2005-05-25 13:50:01 UTC
kernel has INET6 commented out, thus no ipv6 support, yet:
host -d -v -t ns sgh.waw.pl. dns.nask.pl.
Using domain server:
Name: a.nask.pl
Addresses: 2001:a10:1:1::44 195.187.245.44

;; res_nmkquery(QUERY, sgh.waw.pl, IN, NS)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30947
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;      sgh.waw.pl, type = NS, class = IN
;; Querying server (# 1) address = 2001:a10:1:1::44
res_send: socket(dg): Protocol not supported
res_nsend failed
Host not found, try again.

resolver should not even see that "dns.nask.pl" has ipv6 address, not mentioning trying it, but even if it tries it, why it does not continue to ask v4 (which of course works)?

Fix: 

not a fix, but a workaround: define INET6 in kernel config
fix would need to be done in sources
How-To-Repeat: undefine INET6 from kernel config
Comment 1 Bruce Cran freebsd_committer freebsd_triage 2009-03-25 17:05:02 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Doug Barton freebsd_committer freebsd_triage 2009-03-25 18:25:36 UTC
State Changed
From-To: open->closed


FreeBSD 4 is well past End of Life, and this bug should no longer 
be present in modern versions of BIND, or the OS.  

If you are still experiencing this issue with FreeBSD 6 or newer 
please feel free to file a new PR. 


Regards,
Comment 3 Doug Barton freebsd_committer freebsd_triage 2009-03-25 18:25:36 UTC
Responsible Changed
From-To: freebsd-net->dougb


host(1) is part of BIND