how to log all recursive query responses?

David Sparks dave at ca.sophos.com
Sat Aug 9 17:24:57 UTC 2008


JINMEI Tatuya / 神明達哉 wrote:
> At Fri, 08 Aug 2008 16:56:25 -0700,
> "David Sparks" <dave at ca.sophos.com> wrote:
>>> If, on the other hand, you're trying to answer the question "why do I 
>>> get a SERVFAIL, some of the time, for some names, seemingly at random?", 
>>> then I don't know that a targeted tcpdump is going to help. You might 
>>> have to capture *everything*, detect the error, and then wade through 
>>> the data later.
>> This is exactly the problem.  Is there some way to get named to dump its 
>> internal state so you can see why its returning a (cached?) SERVFAIL for what 
>> should be a working query?  When I run rndc dumpdb and look at the output I 
>> can't find anything about the query its returning SERVFAIL for, is there some 
>> extra cache or rndc dumpdb flag I need to use?
>>
>> This problem usually only happens on the busier of two named instances and 
>> only after a week or so of uptime.  If no-one else knows of this problem I 
>> guess I need to start collecting more data.
> 
> Which version of BIND are you using?

ns1 ~ # named -v
BIND 9.5.0-P2

ns1 ~ # uname -a
Linux ns1 2.6.23-gentoo-r8 #1 SMP Tue Feb 19 12:49:46 PST 2008 x86_64 Intel(R) 
Xeon(R) CPU 5130 @ 2.00GHz GenuineIntel GNU/Linux

ns1 ~ # /lib/libc.so.6
GNU C Library stable release version 2.6.1, by Roland McGrath et al.
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.2 (Gentoo 4.1.2 p1.1).
Compiled on a Linux >>2.6.23-gentoo-r8<< system on 2008-07-02.
Available extensions:
         C stubs add-on version 2.1.2
         crypt add-on version 2.1 by Michael Glad and others
         Gentoo patchset 1.2
         GNU Libidn by Simon Josefsson
         Native POSIX Threads Library by Ulrich Drepper et al
         Support for some architectures added on, not maintained in glibc core.
         BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.



More information about the bind-users mailing list