Browse files

dont treat key files as package file

  • Loading branch information...
1 parent 8ae3436 commit 1e1282879eb5f698dd7f7486b372cc1c729c8768 @markllama committed May 16, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 bind-local.spec
View
11 bind-local.spec
@@ -89,6 +89,14 @@ echo "forwarders { ${FORWARDER} ; } ;" > /var/named/forwarders.conf
# set SELinux label for forwarders file
restorecon -v /var/named/forwarders.conf
+# create a new DNSSEC update key
+TEST_ZONE=example.com
+cd /tmp
+KEY_NAME=$(dnssec-keygen -a HMAC-MD5 -b 512 -n USER ${TEST_ZONE})
+cp ${KEY_NAME}.key /etc/dhcp/${TEST_ZONE}.key
+cp ${KEY_NAME}.key /var/named/${TEST_ZONE}.key
+rm -f ${KEY_NAME}.{key,private}
+
# Enable and start local named
chkconfig named on
service named start
@@ -171,6 +179,7 @@ fi
# DHCP -> named forwarders
/etc/dhcp/dhclient.conf
%attr(0750,-,-) /etc/dhcp/dhclient-up-hooks
+#%config %attr(0640,root,root) /etc/dhcp/example.com.key
# script to start a self-contained named
%attr(0755,-,-) /usr/bin/named-local
@@ -189,7 +198,7 @@ fi
/usr/share/bind-local/etc/named.conf
# system service config files
-%config %attr(0640,root,named) /var/named/example.com.key
+#%config %attr(0640,root,named) /var/named/example.com.key
%config %attr(0640,root,named) /var/named/dynamic/example.com.db
#%config %attr(0640,root,named) /var/named/forwarders.conf
%attr(0640,root,named) /var/named/forwarders.conf

0 comments on commit 1e12828

Please sign in to comment.