Previous Section  < Day Day Up >  Next Section

Recipe 24.17. Checking Syntax

24.17.1 Problem

All those BIND files! All those commas, and dots, and semicolons! It's too easy to make typos—is there a syntax-checker to help?

24.17.2 Solution

Yes, in fact there are two. named-checkconf checks named.conf, and named-checkzone is for your zone files. Use them like this:

# named-checkconf named.conf

# named-checkzone windbag.net /var/named/db.zone.net.windbag

24.17.3 Discussion

Note that named-checkzone needs the zone name, as defined by the $ORIGIN directive, and also its corresponding binary database file.

24.17.4 See Also

  • named-checkconf(8), named-checkzone(8)

    Previous Section  < Day Day Up >  Next Section