egscripts/egupdatebind/egupdatebind

21 lines
468 B
Bash
Executable file

#!/bin/bash
#
# rob@egressive.com 20070402
#
NAMED_CONF_FILE="/etc/bind/named.conf.egressive"
DATE=`date`
cat <<EOT >> $NAMED_CONF_FILE
// added by /etc/egscripts/egupdatebind/egupdatebind on $DATE
zone "$1" {
type slave;
masters { 202.6.116.2; 172.16.96.2; };
allow-notify { 202.6.116.2; 172.16.96.2; };
allow-query { any; };
//allow-transfer { key TRANSFER; };
file "slave/$1";
};
EOT
sudo /etc/init.d/bind9 reload