diff --git a/envfile b/envfile index fc51a2d..924d616 100644 --- a/envfile +++ b/envfile @@ -1,3 +1,5 @@ SHARED_SECRET=changeme ZONE=example.org -RECORD_TTL=3600 \ No newline at end of file +RECORD_TTL=3600 +NS=ns1.example.org,ns2.example.org +TRANSFERIP=192.168.100.5;192.168.100.6 diff --git a/setup.sh b/setup.sh index 2377c44..6e94d4e 100755 --- a/setup.sh +++ b/setup.sh @@ -12,7 +12,19 @@ zone "$ZONE" { type master; file "$ZONE.zone"; allow-query { any; }; +EOF + +if [ ! -z $TRANSFERIP ] +then + cat >> /etc/bind/named.conf <> /etc/bind/named.conf <> /etc/bind/named.conf < /var/cache/bind/$ZONE.zone <> /var/cache/bind/$ZONE.zone <> /var/cache/bind/$ZONE.zone <> /var/cache/bind/$ZONE.zone <