Zone file sanity check script

Danny Mayer mayer at gis.net
Wed Mar 20 23:41:14 UTC 2002


At 12:04 PM 3/20/02, Jim Reid wrote:
> >>>>> "Martyn" == Martyn Drake <martyn at usenet.drake.me.uk> writes:
>
>     Martyn> Does anybody have any recommendations or know about any
>     Martyn> pre-written scripts that performs basic sanity checking on
>     Martyn> zone files?  It is all too easy for somebody to forget to
>     Martyn> add a full-stop or use a hash instead of a semi-colon for
>     Martyn> comments which ultimately prevent BIND from loading that
>     Martyn> zone file.
>
>Try named-checkconf that comes with BIND9. It uses the same zone file
>parsing code that the BIND9 server uses. The tool will catch any
>syntax errors. It won't be able to catch semantic errors like a name
>that's missing a terminating dot. After all how could it really know
>for sure if a trailing dot should or shouldn't be there?

Jim meant named-checkzone for checking zones.  named-checkconf is
what you need for checking the named.conf configuration file.

         Danny



More information about the bind-users mailing list