dnstop: Monitor BIND DNS Server (DNS Network Traffic) From a Shell Prompt

Posted on in Categories , , , , , , , , , , last updated January 8, 2009

Q. How do I monitor my Bind 9 named (or any other dns server) server traffic / network traffic under Linux? How do I find out and view current DNS queries such as A, MX, PTR and so on in real time? How do I find out who is querying my DNS server or specific domain or specific dns client IP address?

Troubleshoot Linux / UNIX bind dns server zone problems with named-checkzone tool

Posted on in Categories , , , , , , , , , , , , last updated September 21, 2007

Q. How do I check my domain zone file for error and validity the same under BIND DNS Server version 9?

A. You need to use named- checkzone command as zone file validity checking tool. It is useful for checking zone files before configuring them into a name server.

named-checkzone command syntax

named-checkzone {zonename} {filename}
Where,

  • zonename : The domain name of the zone being checked.
  • filename : The name of the zone file.

How do I check my zone file configuration for errors?

Use named-checkzone to check the zone files as follows:
named-checkzone nixcraft.com /var/named/zone.nixcraft.com
Output:

OK

If you see “OK” as result, the zone file is properly configured and you can restart bind name server.