Odd resolving problem

Terrence Koeman root at mediamonks.net
Mon Dec 10 00:12:34 UTC 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

The log I sent with this message was debug level 2 not 4. I redid the
test on debug 4 and found this:

[...]
10-Dec-2001 00:50:27.000 default: debug 1: resend(addr=3 n=0) ->
[195.185.185.60].53 ds=432 nsid=1726 id=6 16ms
10-Dec-2001 00:50:27.000 default: debug 1: tcp_send
10-Dec-2001 00:50:27.000 default: debug 3: sq_add(0x6d02f4)
evSelectFD(ctx 0x7c0020, fd 484, mask 0x7, func 0x100043b0, uap
0x4a167f0)
evDeselectFD(fd 484, mask 0x7)
10-Dec-2001 00:50:27.000 default: debug 2: sq_remove(0x6d02f4, 484)
rfcnt=1
10-Dec-2001 00:50:27.000 default: debug 3: error resending tcp msg:
Errcode: 9: Bad file descriptor
[...]
10-Dec-2001 00:50:31.000 default: debug 1: resend(addr=4 n=0) ->
[212.246.228.11].53 ds=432 nsid=1726 id=6 22ms
10-Dec-2001 00:50:31.000 default: debug 1: tcp_send
10-Dec-2001 00:50:31.000 default: debug 3: sq_add(0x6d02f4)
evSelectFD(ctx 0x7c0020, fd 484, mask 0x7, func 0x100043b0, uap
0x6e8684)
evDeselectFD(fd 484, mask 0x7)
10-Dec-2001 00:50:31.000 default: debug 2: sq_remove(0x6d02f4, 484)
rfcnt=1
10-Dec-2001 00:50:31.000 default: debug 3: error resending tcp msg:
Errcode: 9: Bad file descriptor
[...]
10-Dec-2001 00:50:35.000 default: debug 1: resend(addr=0 n=1) ->
[213.221.172.238].53 ds=432 nsid=1726 id=6 7ms
10-Dec-2001 00:50:35.000 default: debug 1: tcp_send
10-Dec-2001 00:50:35.000 default: debug 3: sq_add(0x6d02f4)
evSelectFD(ctx 0x7c0020, fd 484, mask 0x7, func 0x100043b0, uap
0x4a170e8)
evDeselectFD(fd 484, mask 0x7)
10-Dec-2001 00:50:35.000 default: debug 2: sq_remove(0x6d02f4, 484)
rfcnt=1
10-Dec-2001 00:50:35.000 default: debug 3: error resending tcp msg:
Errcode: 9: Bad file descriptor

I think the "error resending tcp msg: Errcode: 9: Bad file descriptor"
means it cannot bind to the IP and thus never sends the tcp message to
the quakenet.org nameservers or something like that. What could cause
this?

- -- 
Regards,

Terrence Koeman

Technical Director/Administrator
MediaMonks B.V. (www.mediamonks.nl)

Please quote all replies in correspondence. 

> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org]On
> Behalf Of Terrence Koeman
> Sent: Sunday, December 09, 2001 06:51
> To: Danny Mayer; Bind Users
> Subject: RE: Odd resolving problem
> 
> 
> > -----Original Message-----
> > From: Danny Mayer [mailto:mayer at gis.net]
> > Sent: Sunday, December 09, 2001 04:56
> > To: root at mediamonks.net; Bind Users
> > Subject: Re: Odd resolving problem
> 
> > >Hello,
> > >
> > >My DNS servers suddenly stopped resolving one particular hostname,
> > >while others around the globe can resolve this host just fine.
> > >
> > >The hostname is irc.quakenet.org (and a CNAME of it:
> > >irc.quakenet.eu.org).
> > >
> > >Other hosts that are in the same domain and have the same
> > >authorative nameservers resolve fine, i.e. www.quakenet.org and
> > >irc.uk.quakenet.org.
> > >
> > >I'm running BIND 8.2.0 on Windows 2000 Advanced Server SP2.
> >
> > What version is this really? Is it BIND 9.2.0 or 8.2.5?  Your
> > version of dig
> > is from BIND 8.2.5 but you don't seem to be running it on the same
> > node. 
> 
> BIND 8.2.5-NT on the server, and the dig that came with it on my home
> connection.
> 
> > >I included some dig's to show my problem at the end.
> > >
> > >The last dig is a lookup of irc.quakenet.org through some other
> > >DNS server, and it shows a lot of A records for this host. So I
> > >figured the answer might be bigger than a UDP packet and I could
> > >be accidentally blocking port 53 TCP. This is not the case.
> >
> > Running Dig 9.2.0 shows that it's getting a UDP truncation and 
> it retries
> > in TCP mode.
> 
> Yes, I figured that as the reply is too big for an UDP packet.
> 
> > >And I'd like to note that until some hours ago the host resolved
> > >fine.  
> > >
> > >Does someone have an idea what this could be? The logs don't give
> > >me any clues.
> >
> > Probably the sheer number of A records for that address.  What were
> > they thinking? Try a BIND 9.2.0 version of Dig. From the test I
> > conducted against
> > my 8.2.5 version of BIND on NT, it looks like it takes too long for
> > the nameserver to get the answer because it has to retry in TCP
> > mode and dig is timing out before the server can get the answer. If
> > you
> > install BIND
> > 9.2.0
> > it will work though dig may timeout initially.
> 
> Well I tried installing BIND 9.2.0, but it runs abnormally slow on
> that server. Like 1 query per second. I currently don't have the time
> to find the
> problem, so I just want to keep running a 8.2.x version.
> 
> I included a part of the log with debug level 4. I let BIND use some
> other IP-address, cleared the log and restarted it. The I did 2
> queries 
> using dig.
> One on irc.uk.quakenet.org, which succeeded, and one on
> irc.quakenet.org, which failed.
> 
> It seems to me that BIND is trying to send something to the 
> nameserver using
> TCP, fails and tries to resend it to the next nameserver in line,
> fails again and tries the third, fails and then stops alltogether, 
> never returning
> something to dig.
> 
> If I use 'dig @ns1.mediamonks.net irc.quakenet.org +qr +time=60' it
> still times out.
> 
> I still think something at my side is wrong as thousands of 
> people can still
> resolve irc.quakenet.org.
> 
> Please advice.

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.1

iQA/AwUBPBP9ynxo/qu3lMSREQINzgCeINMVOzUVv8m4s8HFBrqnn8yQckoAoMwW
9PL5+NJNXHIAUD9ZbZA2A+Fv
=BOOb
-----END PGP SIGNATURE-----



More information about the bind-users mailing list