summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@redhat.com>2011-01-06 14:10:49 +0100
committerAdam Tkac <atkac@redhat.com>2011-01-06 14:10:49 +0100
commitd4ce1d893b97e4d62bb7abd3123aa7d6e963228c (patch)
tree919fdb990b669439625b59df6df40cae246bb1fd
parentbd297885dea4c2ea759e1b3cad79ade2b752abbf (diff)
downloadbind-d4ce1d893b97e4d62bb7abd3123aa7d6e963228c.tar.gz
bind-d4ce1d893b97e4d62bb7abd3123aa7d6e963228c.tar.xz
bind-d4ce1d893b97e4d62bb7abd3123aa7d6e963228c.zip
Add new option DISABLE_ZONE_CHECKING to sysconfig/named.
Signed-off-by: Adam Tkac <atkac@redhat.com>
-rw-r--r--bind.spec5
-rwxr-xr-xnamed.init5
-rw-r--r--named.sysconfig6
3 files changed, 14 insertions, 2 deletions
diff --git a/bind.spec b/bind.spec
index cb9025e..53ee224 100644
--- a/bind.spec
+++ b/bind.spec
@@ -22,7 +22,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: ISC
Version: 9.7.3
-Release: 0.1.%{PREVER}%{?dist}
+Release: 0.2.%{PREVER}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot:%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -766,6 +766,9 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
+* Wed Jan 05 2011 Adam Tkac <atkac redhat com> 32:9.7.3-0.2.b1
+- add new option DISABLE_ZONE_CHECKING to sysconfig/named
+
* Wed Jan 05 2011 Adam Tkac <atkac redhat com> 32:9.7.3-0.1.b1
- update to 9.7.3b1
diff --git a/named.init b/named.init
index 325f71c..d679a7a 100755
--- a/named.init
+++ b/named.init
@@ -129,7 +129,10 @@ start()
exit 0;
fi;
- ckcf_options='-z'; # enable named-checkzone for each zone (9.3.1+) !
+ if ! [ "$DISABLE_ZONE_CHECKING" = yes ]; then
+ ckcf_options='-z'; # enable named-checkzone for each zone (9.3.1+) !
+ fi;
+
if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then
OPTIONS="${OPTIONS} -t ${ROOTDIR}"
ckcf_options="$ckcf_options -t ${ROOTDIR}";
diff --git a/named.sysconfig b/named.sysconfig
index 671621d..8ba7d56 100644
--- a/named.sysconfig
+++ b/named.sysconfig
@@ -32,3 +32,9 @@
# at startup. Don't add -t here, use ROOTDIR instead.
#
# KEYTAB_FILE="/dir/file" -- Specify named service keytab file (for GSS-TSIG)
+#
+# DISABLE_ZONE_CHECKING -- By default, initscript calls named-checkzone
+# utility for every zone to ensure all zones are
+# valid before named starts. If you set this option
+# to 'yes' then initscript doesn't perform those
+# checks.