Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 2004 16:47:59 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: hostname lookup problem
Message-ID:  <20041207164759.A283@curly.tele2.no>
In-Reply-To: <20041207093709.GA41269@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Tue, Dec 07, 2004 at 09:37:09AM %2B0000
References:  <20041206195709.A332@curly.tele2.no> <20041207093709.GA41269@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 07, 2004 at 09:37:09AM +0000, David Malone wrote:
> On Mon, Dec 06, 2004 at 07:57:09PM +0100, Hans Petter Selasky wrote:
> > I have come across a problem where res_send() goes into a minute-long wait 
> > loop, waiting for the hostname to be looked up, after a getaddrinfo() call. I 
> > have captured the packets sent/received, and according to the code the 
> > query response does not match. Is this a bug in libc or is it a DNS server 
> > problem? 
> 
> It looks like the recursive name server is doing something weird.

The nameservers I use are 193.216.1.10 (primary DNS) (nic.daxnet.no) and 
193.216.69.10 (secondary DNS) (ns.tele2.no)

Output from "dig aaaa www.google.com @193.216.1.10":

; <<>> DiG 8.3 <<>> aaaa www.google.com @193.216.1.10
; (1 server found)
;; res options: init recurs defnam dnsrch
;; wrong query name:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;      www.google.akadns.net, type = AAAA, class = IN

;; wrong query name:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;      www.google.akadns.net, type = AAAA, class = IN

;; res_nsend to server 193.216.1.10  193.216.1.10: Operation timed out

Output from "dig a www.google.com @193.216.1.10":

; <<>> DiG 8.3 <<>> a www.google.com @193.216.1.10
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 13, ADDITIONAL: 12   
;; QUERY SECTION:
;;      www.google.com, type = A, class = IN

;; ANSWER SECTION:
www.google.com.         3m22s IN CNAME  www.google.akadns.net.  
www.google.akadns.net.  2m25s IN A      66.102.9.104
www.google.akadns.net.  2m25s IN A      66.102.9.99
    
;; AUTHORITY SECTION:
.                       3d19h35m36s IN NS  A.ROOT-SERVERS.net.  
.                       3d19h35m36s IN NS  H.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  C.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  G.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  F.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  B.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  J.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  K.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  L.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  M.ROOT-SERVERS.net.  
.                       3d19h35m36s IN NS  I.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  E.ROOT-SERVERS.net.
.                       3d19h35m36s IN NS  D.ROOT-SERVERS.net.   

;; ADDITIONAL SECTION:
A.ROOT-SERVERS.net.     19h40m39s IN A  198.41.0.4
H.ROOT-SERVERS.net.     19h40m39s IN A  128.63.2.53
C.ROOT-SERVERS.net.     19h40m39s IN A  192.33.4.12
G.ROOT-SERVERS.net.     19h40m39s IN A  192.112.36.4
F.ROOT-SERVERS.net.     19h40m39s IN A  192.5.5.241
B.ROOT-SERVERS.net.     19h40m39s IN A  192.228.79.201
J.ROOT-SERVERS.net.     19h38m52s IN A  192.58.128.30
K.ROOT-SERVERS.net.     19h38m52s IN A  193.0.14.129
L.ROOT-SERVERS.net.     19h38m52s IN A  198.32.64.12
M.ROOT-SERVERS.net.     19h38m52s IN A  202.12.27.33
I.ROOT-SERVERS.net.     19h38m52s IN A  192.36.148.17
E.ROOT-SERVERS.net.     19h40m39s IN A  192.203.230.10

;; Total query time: 210 msec
;; FROM: curly.tele2.no to SERVER: 193.216.1.10  193.216.1.10
;; WHEN: Tue Dec  7 16:27:56 2004
;; MSG SIZE  sent: 32  rcvd: 499

> 
> Do you know what is acting as your recursive DNS server?
No.

Yours
-HPS



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