Monitoring a Name Server

5.16.1 Problem

You want to monitor a zone's name servers.

5.16.2 Solution

Use a freely available package that supports monitoring name servers. The well-thought-of mon supports monitoring the DNS service. You can get a copy from Since the DNS-monitoring portion of the package, dns.monitor, is written in Perl using the Net::DNS module, it's easy to adapt to your particular needs.

5.16.3 Discussion

You can also use Dave Barr's excellent dnswalk, available from, for DNS monitoring. Also built using Net::DNS, dnswalk detects lame and unresponsive name servers, as well as many common zone data errors. Just make sure dnswalk can transfer a copy of the zone you want to monitor, and specify dnswalk's - l command-line option to turn on lame delegation checking. Then you can run dnswalk periodically from cron and send yourself the output.

5.16.4 See Also

Recipes Section 9.8 through Section 9.11 for examples of programming with Net::DNS.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration


Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting


DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu © 2008-2020.
If you may any questions please contact us: