From 3b517f197c017c33bdae7a9935526275a27dc2c6 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 4 Jan 2009 01:37:31 +0000 Subject: [PATCH] Icon to run named-checkconf --- bind8/CHANGELOG | 1 + bind8/bind8-lib.pl | 21 +++++++++++++++++++++ bind8/conf_ncheck.cgi | 28 ++++++++++++++++++++++++++++ bind8/config-aix | 1 + bind8/config-cobalt-linux | 1 + bind8/config-coherent-linux | 1 + bind8/config-corel-linux | 1 + bind8/config-debian-linux | 1 + bind8/config-debian-linux-2.2 | 1 + bind8/config-debian-linux-3.0 | 1 + bind8/config-debian-linux-3.1-* | 1 + bind8/config-freebsd-2.1-2.2 | 1 + bind8/config-freebsd-3.0 | 1 + bind8/config-freebsd-3.1-3.5 | 1 + bind8/config-freebsd-4.0-* | 1 + bind8/config-generic-linux | 1 + bind8/config-gentoo-linux | 1 + bind8/config-hpux | 1 + bind8/config-irix | 1 + bind8/config-macos | 1 + bind8/config-macos-1.3-* | 1 + bind8/config-mandrake-linux | 1 + bind8/config-mandrake-linux-10.2-* | 1 + bind8/config-msc-linux | 1 + bind8/config-netbsd | 1 + bind8/config-open-linux | 1 + bind8/config-openbsd-2.5-3.1 | 1 + bind8/config-openbsd-3.2-* | 1 + bind8/config-openmamba-linux | 1 + bind8/config-openserver | 1 + bind8/config-osf1 | 1 + bind8/config-redhat-linux | 1 + bind8/config-redhat-linux-10.0 | 1 + bind8/config-redhat-linux-11.0-* | 1 + bind8/config-redhat-linux-7.1-9.0 | 1 + bind8/config-slackware-linux | 1 + bind8/config-slackware-linux-8.0-* | 1 + bind8/config-sol-linux | 1 + bind8/config-solaris | 1 + bind8/config-solaris-10-* | 1 + bind8/config-solaris-7-9 | 1 + bind8/config-suse-linux | 1 + bind8/config-suse-linux-8.2 | 1 + bind8/config-suse-linux-9.0-9.2 | 1 + bind8/config-suse-linux-9.3-* | 1 + bind8/config-trustix-linux | 1 + bind8/config-trustix-linux-2.1 | 1 + bind8/config-trustix-linux-2.2-* | 1 + bind8/config-turbo-linux | 1 + bind8/config-united-linux | 1 + bind8/config-unixware | 1 + bind8/config-windows | 1 + bind8/config.info | 1 + bind8/images/ncheck.gif | Bin 0 -> 1556 bytes bind8/index.cgi | 4 ++-- bind8/lang/en | 5 +++++ 56 files changed, 107 insertions(+), 2 deletions(-) create mode 100755 bind8/conf_ncheck.cgi create mode 100644 bind8/images/ncheck.gif diff --git a/bind8/CHANGELOG b/bind8/CHANGELOG index deb4c382d..d0ab95b45 100644 --- a/bind8/CHANGELOG +++ b/bind8/CHANGELOG @@ -96,3 +96,4 @@ Moved the apply, stop and start buttons to the top-right corner of every page, s Zones can now be signed with DNSSEC, using one or two keys. This can be done automatically at master zone creation time, or later for existing zones. Signatures can also be removed or re-generated at any time. Zones with a key-signing and zone key can have their zone key automatically regenated on a regular interval. Added the DNSSEC Verification page for configuring BIND to validate signatures on other zones, and to use DLV until the root zone is signed. SPF records can now be added to or updated in multiple zones at once. +Added an icon to the main page for checking the whole BIND configuration including zone files, with the named-checkconf command. diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index a3d19ac09..e844e6107 100644 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -2473,6 +2473,27 @@ local $out = &backquote_command( return $? ? split(/\r?\n/, $out) : ( ); } +# supports_check_conf() +# Returns 1 if BIND configuration checking is supported, 0 if not +sub supports_check_conf +{ +return $config{'checkconf'} && &has_command($config{'checkconf'}); +} + +# check_bind_config([filename]) +# Checks the BIND configuration and returns a list of errors +sub check_bind_config +{ +local ($file) = @_; +$file ||= &make_chroot($config{'named_conf'}); +local $chroot = &get_chroot(); +local $out = &backquote_command( + $config{'checkconf'}. + ($chroot && $chroot ne "/" ? " -t ".quotemeta($chroot) : ""). + " -z 2>&1 ",&text('ncheck_errs', "$file"),"

\n"; + print "

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

\n"; + } + +&ui_print_footer("", $text{'index_return'}); + diff --git a/bind8/config-aix b/bind8/config-aix index 90e15abd1..b2eebff03 100644 --- a/bind8/config-aix +++ b/bind8/config-aix @@ -33,3 +33,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-cobalt-linux b/bind8/config-cobalt-linux index a411fd150..a67a407de 100644 --- a/bind8/config-cobalt-linux +++ b/bind8/config-cobalt-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-coherent-linux b/bind8/config-coherent-linux index 07ff03fd1..22ab27e7f 100644 --- a/bind8/config-coherent-linux +++ b/bind8/config-coherent-linux @@ -39,3 +39,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-corel-linux b/bind8/config-corel-linux index a411fd150..a67a407de 100644 --- a/bind8/config-corel-linux +++ b/bind8/config-corel-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-debian-linux b/bind8/config-debian-linux index a411fd150..a67a407de 100644 --- a/bind8/config-debian-linux +++ b/bind8/config-debian-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-debian-linux-2.2 b/bind8/config-debian-linux-2.2 index dca72bc2c..04f21994b 100644 --- a/bind8/config-debian-linux-2.2 +++ b/bind8/config-debian-linux-2.2 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-debian-linux-3.0 b/bind8/config-debian-linux-3.0 index 3339a086d..8513a8e0d 100644 --- a/bind8/config-debian-linux-3.0 +++ b/bind8/config-debian-linux-3.0 @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-debian-linux-3.1-* b/bind8/config-debian-linux-3.1-* index fee0d3405..51f3c313d 100644 --- a/bind8/config-debian-linux-3.1-* +++ b/bind8/config-debian-linux-3.1-* @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-freebsd-2.1-2.2 b/bind8/config-freebsd-2.1-2.2 index 20370d373..4a1eeca63 100644 --- a/bind8/config-freebsd-2.1-2.2 +++ b/bind8/config-freebsd-2.1-2.2 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-freebsd-3.0 b/bind8/config-freebsd-3.0 index 91b1b887f..4fa77c728 100644 --- a/bind8/config-freebsd-3.0 +++ b/bind8/config-freebsd-3.0 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-freebsd-3.1-3.5 b/bind8/config-freebsd-3.1-3.5 index a411fd150..a67a407de 100644 --- a/bind8/config-freebsd-3.1-3.5 +++ b/bind8/config-freebsd-3.1-3.5 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-freebsd-4.0-* b/bind8/config-freebsd-4.0-* index 91b1b887f..4fa77c728 100644 --- a/bind8/config-freebsd-4.0-* +++ b/bind8/config-freebsd-4.0-* @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-generic-linux b/bind8/config-generic-linux index 3263f82af..70b35cbf9 100644 --- a/bind8/config-generic-linux +++ b/bind8/config-generic-linux @@ -36,3 +36,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-gentoo-linux b/bind8/config-gentoo-linux index 76e8fc895..c744354c0 100644 --- a/bind8/config-gentoo-linux +++ b/bind8/config-gentoo-linux @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-hpux b/bind8/config-hpux index a411fd150..a67a407de 100644 --- a/bind8/config-hpux +++ b/bind8/config-hpux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-irix b/bind8/config-irix index a411fd150..a67a407de 100644 --- a/bind8/config-irix +++ b/bind8/config-irix @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-macos b/bind8/config-macos index 2ce0a3a83..e636c4dac 100644 --- a/bind8/config-macos +++ b/bind8/config-macos @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-macos-1.3-* b/bind8/config-macos-1.3-* index ba30ec1ab..718cfe9e3 100644 --- a/bind8/config-macos-1.3-* +++ b/bind8/config-macos-1.3-* @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-mandrake-linux b/bind8/config-mandrake-linux index 69bda2c6c..71b7b5eea 100644 --- a/bind8/config-mandrake-linux +++ b/bind8/config-mandrake-linux @@ -37,3 +37,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-mandrake-linux-10.2-* b/bind8/config-mandrake-linux-10.2-* index f796b6e00..27574e3d7 100644 --- a/bind8/config-mandrake-linux-10.2-* +++ b/bind8/config-mandrake-linux-10.2-* @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-msc-linux b/bind8/config-msc-linux index 7a07ad026..b773d2588 100644 --- a/bind8/config-msc-linux +++ b/bind8/config-msc-linux @@ -37,3 +37,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-netbsd b/bind8/config-netbsd index 91b1b887f..4fa77c728 100644 --- a/bind8/config-netbsd +++ b/bind8/config-netbsd @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-open-linux b/bind8/config-open-linux index 69bda2c6c..71b7b5eea 100644 --- a/bind8/config-open-linux +++ b/bind8/config-open-linux @@ -37,3 +37,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-openbsd-2.5-3.1 b/bind8/config-openbsd-2.5-3.1 index a411fd150..a67a407de 100644 --- a/bind8/config-openbsd-2.5-3.1 +++ b/bind8/config-openbsd-2.5-3.1 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-openbsd-3.2-* b/bind8/config-openbsd-3.2-* index 73ef30a9f..09acffd24 100644 --- a/bind8/config-openbsd-3.2-* +++ b/bind8/config-openbsd-3.2-* @@ -36,3 +36,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-openmamba-linux b/bind8/config-openmamba-linux index 69bda2c6c..71b7b5eea 100644 --- a/bind8/config-openmamba-linux +++ b/bind8/config-openmamba-linux @@ -37,3 +37,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-openserver b/bind8/config-openserver index a411fd150..a67a407de 100644 --- a/bind8/config-openserver +++ b/bind8/config-openserver @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-osf1 b/bind8/config-osf1 index a411fd150..a67a407de 100644 --- a/bind8/config-osf1 +++ b/bind8/config-osf1 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-redhat-linux b/bind8/config-redhat-linux index 69bda2c6c..71b7b5eea 100644 --- a/bind8/config-redhat-linux +++ b/bind8/config-redhat-linux @@ -37,3 +37,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-redhat-linux-10.0 b/bind8/config-redhat-linux-10.0 index 9b8e31f2d..9ca54d056 100644 --- a/bind8/config-redhat-linux-10.0 +++ b/bind8/config-redhat-linux-10.0 @@ -42,3 +42,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-redhat-linux-11.0-* b/bind8/config-redhat-linux-11.0-* index 235157539..858b05775 100644 --- a/bind8/config-redhat-linux-11.0-* +++ b/bind8/config-redhat-linux-11.0-* @@ -42,3 +42,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-redhat-linux-7.1-9.0 b/bind8/config-redhat-linux-7.1-9.0 index 573e2e84d..5c440e3ef 100644 --- a/bind8/config-redhat-linux-7.1-9.0 +++ b/bind8/config-redhat-linux-7.1-9.0 @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-slackware-linux b/bind8/config-slackware-linux index a411fd150..a67a407de 100644 --- a/bind8/config-slackware-linux +++ b/bind8/config-slackware-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-slackware-linux-8.0-* b/bind8/config-slackware-linux-8.0-* index 864177609..e2cc9990c 100644 --- a/bind8/config-slackware-linux-8.0-* +++ b/bind8/config-slackware-linux-8.0-* @@ -36,3 +36,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-sol-linux b/bind8/config-sol-linux index cb7bb0f6a..0dbccf92d 100644 --- a/bind8/config-sol-linux +++ b/bind8/config-sol-linux @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-solaris b/bind8/config-solaris index 2f4635674..13a21eceb 100644 --- a/bind8/config-solaris +++ b/bind8/config-solaris @@ -36,3 +36,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-solaris-10-* b/bind8/config-solaris-10-* index 5af766063..500227a62 100644 --- a/bind8/config-solaris-10-* +++ b/bind8/config-solaris-10-* @@ -36,3 +36,4 @@ no_pid_chroot=0 checkzone=/usr/bin/named-checkzone keygen=/usr/bin/dnssec-keygen signzone=/usr/bin/dnssec-signzone +checkconf=/usr/bin/named-checkconf diff --git a/bind8/config-solaris-7-9 b/bind8/config-solaris-7-9 index d991f8459..72e304ac2 100644 --- a/bind8/config-solaris-7-9 +++ b/bind8/config-solaris-7-9 @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-suse-linux b/bind8/config-suse-linux index 840139701..ceaeb3a06 100644 --- a/bind8/config-suse-linux +++ b/bind8/config-suse-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-suse-linux-8.2 b/bind8/config-suse-linux-8.2 index 823229db1..4c7fc8d11 100644 --- a/bind8/config-suse-linux-8.2 +++ b/bind8/config-suse-linux-8.2 @@ -40,3 +40,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-suse-linux-9.0-9.2 b/bind8/config-suse-linux-9.0-9.2 index 09f145dfb..a987ca0a2 100644 --- a/bind8/config-suse-linux-9.0-9.2 +++ b/bind8/config-suse-linux-9.0-9.2 @@ -41,3 +41,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-suse-linux-9.3-* b/bind8/config-suse-linux-9.3-* index 26bfe684d..488978d2f 100644 --- a/bind8/config-suse-linux-9.3-* +++ b/bind8/config-suse-linux-9.3-* @@ -43,3 +43,4 @@ master_dir=/var/lib/named/master checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-trustix-linux b/bind8/config-trustix-linux index cb1859e51..61c4f2b9d 100644 --- a/bind8/config-trustix-linux +++ b/bind8/config-trustix-linux @@ -42,3 +42,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-trustix-linux-2.1 b/bind8/config-trustix-linux-2.1 index 833d4098e..a8b89e0fb 100644 --- a/bind8/config-trustix-linux-2.1 +++ b/bind8/config-trustix-linux-2.1 @@ -42,3 +42,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-trustix-linux-2.2-* b/bind8/config-trustix-linux-2.2-* index 50e7c6291..0db8f54ea 100644 --- a/bind8/config-trustix-linux-2.2-* +++ b/bind8/config-trustix-linux-2.2-* @@ -42,3 +42,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-turbo-linux b/bind8/config-turbo-linux index a14c7a161..f7c673f65 100644 --- a/bind8/config-turbo-linux +++ b/bind8/config-turbo-linux @@ -35,3 +35,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-united-linux b/bind8/config-united-linux index 0f167936d..6ec7bd1b3 100644 --- a/bind8/config-united-linux +++ b/bind8/config-united-linux @@ -38,3 +38,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-unixware b/bind8/config-unixware index e5cc39a03..5b71b9350 100644 --- a/bind8/config-unixware +++ b/bind8/config-unixware @@ -36,3 +36,4 @@ largezones=0 checkzone=named-checkzone keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config-windows b/bind8/config-windows index cb78ea893..e0d67c7b6 100755 --- a/bind8/config-windows +++ b/bind8/config-windows @@ -53,3 +53,4 @@ extra_forward= slave_dir= keygen=dnssec-keygen signzone=dnssec-signzone +checkconf=named-checkconf diff --git a/bind8/config.info b/bind8/config.info index 5db5c0e6f..a1805e06a 100644 --- a/bind8/config.info +++ b/bind8/config.info @@ -52,6 +52,7 @@ rndc_cmd=Full path to rndc command,0 rndcconf_cmd=Full path to rndc-confgen command,0 rndc_conf=Full path to the rndc.conf file,0 checkzone=Full path to named-checkzone command,0 +checkconf=Full path to named-checkconf command,0 keygen=Full path to dnssec-keygen command,0 signzone=Full path to dnssec-signzone command,0 pid_file=Default PID file location(s),3,/var/run/named.pid diff --git a/bind8/images/ncheck.gif b/bind8/images/ncheck.gif new file mode 100644 index 0000000000000000000000000000000000000000..611ae7bd0215a08f2711e18bb583ca5429d4d48f GIT binary patch literal 1556 zcmcK32~!gX7{>ACMj}cPD>oqt7)XGGLs79L0YogZ5gCPPq{<-ytd^?PdUA&&Ktd>@ z0&*$0gb-9Jjse1r9T1C15Amp0reoP%kn9oY@*(=pZ~pUqfj2a4kN=KiEPw^Pe+Agu zfp+!;$ld|8cYqumK?g_3(GhZR0v*>tPGr!D43V8d=QWTs1*A|x3Js*v7N~25s4fds z7m(%xy0}8FTfwaaIsu})EzsRSH}?g1chH@&z+iw32E<@OOeVkpDtWnzI=tCyPAfir)$$QwHcYqnVHKO zS$KB#a#l8;oukbWYsF%1ZXS}Cr_IYJ;Q11?K%&i;U;{8kNGU4vAw6|1Sm zYHP8&daRys8@=6t-D$uYh&E!4O=x2i-qegYH)BmLSo0dZwH0q|!`ldVvAgYfdpp{$ zz}gkKLV+n1c!v_}P~u7@rtBo(okUewrwZ*<=~P|Vz5BZR5AX-w_=BIZhmQz&&m;V? z8ds}PwOXg{#nrvKzW$Yd4c@QOX$Euy1NguoJ~*Ts9M%mD>qbTitK&~}tN-UYuWSzb zKH=Dzgn06~q%$INq$q(L8pam@&WNF&8L$d40pix41u$I!R@d3@RaEz8nr?Cz4l8Q< z#p^~+q|+x#2MVlxk~LBDGE39X#yR60W&MbpeqaylXxgAlE;DYlBCOMO%&CDs`}@e0 zTHnuVwIkA^FKe=HuiVxHJo-+58#g)`INRF%YfDtI%WqS?ZjqJ70dF&AJ{Ub|IM82o zw!CT2xQ$y>tr27Tm75*=tMitWWkz_Hc?y`D#2tT3zC1OZaGv%q!(Bg}cIV-t8o42J zBh7~XqT!{OxuqqdbhNt6m>u2vIsp0CBxdzat_a8=aeb|0_gM!iVBzzdxkrz8_sTeY z_gL4oh>7JyF_ST8?RYwuLp6<^wVv+r6B*dkR>GofHu0=INU;&3xQXu99npdzp^S^j zGe5eKf|WjlO#Dx-$xL8@P;k&7hFtpcn*v>bFh7K*nmcFSr`H>9WlcGjW}bcMMd0pn zRTgiP+00zv5f=HmMXhw$Impq{YRuGF^xXjOrIrKeky=wN*uyj{DwjVjFyU2%*Ty?} z0ssey6x6;gE%tpXkeIuz#I>=4vpG;*R$w` z4L`h#PTb%sozP$J;cJlw7^OLz`#qOFJ#PO{^Wq@i&_68gus-{Z*eRPe|972Fh?%$$@|Qq5!@r$cL7$`dc7^V#K>^nXcBwJ$O6nvN;3pj?=sN9*pVg;CZjC++ydr~Q8 ikHMV2@S(}ECk7uZ$DTzV{`M?$lGC;{z0t@J*!3U3R#Kb* literal 0 HcmV?d00001 diff --git a/bind8/index.cgi b/bind8/index.cgi index cb0acb9dd..4730b570c 100755 --- a/bind8/index.cgi +++ b/bind8/index.cgi @@ -1,6 +1,5 @@ #!/usr/local/bin/perl -# index.cgi -# Display a list of domains and links to options +# Display a list of domains, views, and icons for global options. require './bind8-lib.pl'; &ReadParse(); @@ -94,6 +93,7 @@ if ($access{'defaults'}) { $bind_version >= 9 ? ( "conf_rndc.cgi" ) : ( ), &supports_dnssec_client() ? ( "conf_trusted.cgi" ) : ( ), &supports_dnssec() ? ( "conf_dnssec.cgi" ) : ( ), + &supports_check_conf() ? ( "conf_ncheck.cgi" ) : ( ), "conf_manual.cgi" ); @otitles = map { /(conf|list)_(\S+).cgi/; $text{$2."_title"} } @olinks; @oicons = map { /^(conf|list)_(\S+).cgi/; "images/$2.gif"; } @olinks; diff --git a/bind8/lang/en b/bind8/lang/en index 3a8c2da8d..6183f8bc0 100644 --- a/bind8/lang/en +++ b/bind8/lang/en @@ -992,6 +992,11 @@ check_ecannot=You are not allowed to check records check_errs=The following errors were found in the records file $1 .. check_allok=No errors were found in the records file $1. +ncheck_title=Check BIND Config +ncheck_ecannot=You are not allowed to check the BIND configuration +ncheck_errs=The following errors were found in the BIND configuration file $1 or referenced zone files .. +ncheck_allok=No errors were found in the BIND configuration file $1 or referenced zone files. + links_restart=Apply Configuration links_stop=Stop BIND links_start=Start BIND