Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm in the process of changing the IP address of my nameserver and I want a way to tell how many queries I am still receiving on the old IP address to track how well the change is being picked up.

Is this something I can do in BIND9 logging or would I have to go outside it to something like tcpdump to track this? I want to still process queries on multiple IPs but I want some sign of the relative quantity of queries between the 2 IPs.

share|improve this question
    
What operating system is it on? –  bahamat Sep 14 '11 at 19:49
add comment

2 Answers 2

Here is a hack: for each IP, use identical named.conf config files except for different listen-on directives and a logging clause for for the old IP address.

share|improve this answer
add comment

I fear Bind can not do it. There is no print-interface available. See the documentation: http://www.bind9.net/manual/bind/9.3.2/Bv9ARM.ch06.html#id2553006

Maybe Iptables helps to do that. There is a ULOG target for user space logging of packets and a corresponding ulogd. See here: http://www.netfilter.org/projects/ulogd/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.