From 2b1915aa0f36a8883ad5b924907660325f24e2a4 Mon Sep 17 00:00:00 2001 From: cathugger Date: Sun, 13 May 2018 19:28:39 +0000 Subject: NSD requires absolute origin --- scripts/nameserver_autogen/bind_tld_zonefile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh index 8ead9ae..1fba781 100755 --- a/scripts/nameserver_autogen/bind_tld_zonefile.sh +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh @@ -33,7 +33,7 @@ for PFX in $RDNS_PREFIX;do echo "; this zonefile genreated on: `date -u`" > "$RDNS_ZONEFILE".tmp echo '$TTL 3600' >> "$RDNS_ZONEFILE".tmp - echo '$ORIGIN' $DOM >> "$RDNS_ZONEFILE".tmp + echo '$ORIGIN' $DOM. >> "$RDNS_ZONEFILE".tmp echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE".tmp echo '@ IN NS @' >> "$RDNS_ZONEFILE".tmp echo '@ IN A 127.0.0.1' >> "$RDNS_ZONEFILE".tmp @@ -60,7 +60,7 @@ for TLD in $TLDS;do echo "; this zonefile genreated on: `date -u`" > "$ANO_ZONEFILE".tmp echo '$TTL 3600' >> "$ANO_ZONEFILE".tmp - echo '$ORIGIN' $TLD >> "$ANO_ZONEFILE".tmp + echo '$ORIGIN' $TLD. >> "$ANO_ZONEFILE".tmp echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE".tmp echo '@ IN NS @' >> "$ANO_ZONEFILE".tmp echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE".tmp -- cgit v1.2.3