#!/usr/local/bin/perl # Check the whole BIND config and report problems require './bind8-lib.pl'; &ReadParse(); $access{'defaults'} || &error($text{'ncheck_ecannot'}); &ui_print_header(undef, $text{'ncheck_title'}, "", undef, undef, undef, undef, &restart_links()); $file = &make_chroot($config{'named_conf'}); @errs = &check_bind_config(); if (@errs) { # Show list of errors print "",&text('ncheck_errs', "$file"),"

\n"; print "

\n"; } else { # All OK! print "",&text('ncheck_allok', "$file"),"

\n"; } &ui_print_footer("", $text{'index_return'});