Subject: bin/11780: dig summary can be wrong about server talked to
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 12/19/2000 15:05:18
>Number:         11780
>Category:       bin
>Synopsis:       dig summary can be wrong about server talked to
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 19 15:05:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     John Hawkinson
>Release:        NetBSD 1.5
>Organization:
MIT
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.5N NetBSD 1.5N (ZORKMID-$Revision: 1.3 $) #55: Mon Dec 18 23:05:14 EST 2000 jhawk@zorkmid.mit.edu:/usr/local/netbsd-current/src/sys/arch/i386/compile/ZORKMID i386


>Description:
	If the first nameserver listed in resolv.conf is unreachable,
the SERVER listed at the end of the dig output still seems to be
the first one tried. This is...unfortunate.
  
>How-To-Repeat:
	
zorkmid% dig +d2 mit.edu a

; <<>> DiG 8.2 <<>> +d2 mit.edu a 
;; res_nmkquery(QUERY, mit.edu, IN, A)
;; res options: init debug recurs defnam dnsrch ?0x80000000?
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49865
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;      mit.edu, type = A, class = IN

;; Querying server (# 1) address = 127.0.0.1
res_send: recvfrom: Connection refused
;; Querying server (# 2) address = 18.71.0.151
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49865
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 3
;; QUERY SECTION:
;;      mit.edu, type = A, class = IN

;; ANSWER SECTION:
mit.edu.                6H IN A         18.69.0.44
mit.edu.                6H IN A         18.72.0.42
mit.edu.                6H IN A         18.72.0.57

;; AUTHORITY SECTION:
mit.edu.                6H IN NS        BITSY.mit.edu.
mit.edu.                6H IN NS        STRAWB.mit.edu.
mit.edu.                6H IN NS        W20NS.mit.edu.

;; ADDITIONAL SECTION:
BITSY.mit.edu.          6H IN A         18.72.0.3
STRAWB.mit.edu.         6H IN A         18.71.0.151
W20NS.mit.edu.          6H IN A         18.70.0.160

;; Total query time: 10 msec
;; FROM: zorkmid.mit.edu to SERVER: default -- 127.0.0.1
;; WHEN: Tue Dec 19 18:02:12 2000
;; MSG SIZE  sent: 25  rcvd: 182

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: