summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
diff options
context:
space:
mode:
authorIvo Smits <Ivo@UCIS.nl>2015-10-22 21:58:27 +0200
committerIvo Smits <Ivo@UCIS.nl>2015-10-22 21:58:27 +0200
commita1788c4ffb1dab5ec58f5c5c00eb0e8c01183a4e (patch)
treebc19268141002d8d94bf8666cfe9448ecda9b91d /scripts/nameserver_autogen/bind_tld_zonefile_all.sh
parent9ebca13c5be65b5d3d903e645771a0112f88b7e4 (diff)
parent8ad731065a95544d2322cee0911f49d79bf2436c (diff)
downloadresdb-a1788c4ffb1dab5ec58f5c5c00eb0e8c01183a4e.tar.gz
resdb-a1788c4ffb1dab5ec58f5c5c00eb0e8c01183a4e.zip
Merge git://1.41.41.3.ip4.ano/resdb
Diffstat (limited to 'scripts/nameserver_autogen/bind_tld_zonefile_all.sh')
-rwxr-xr-xscripts/nameserver_autogen/bind_tld_zonefile_all.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
index 580aad4..f49afe5 100755
--- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
+++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh
@@ -19,9 +19,9 @@ echo -n "generating ipv4 reverse lookup zonefile for 1/8..."
echo "; this zonefile genreated on: `date`" > "$RDNS_ZONEFILE"
echo '$TTL 3600' >> "$RDNS_ZONEFILE"
-echo '@ IN SOA localhost. root.localhost. ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE"
-echo '@ IN NS localhost.' >> "$RDNS_ZONEFILE"
-echo 'localhost. IN A 127.0.0.1' >> "$RDNS_ZONEFILE"
+echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE"
+echo '@ IN NS @' >> "$RDNS_ZONEFILE"
+echo '@ IN A 127.0.0.1' >> "$RDNS_ZONEFILE"
for i in `ls ${RESDB_PATH}/db/ip/01/*/*/ns/*`;do
f=$(basename $i)
@@ -40,9 +40,9 @@ for GOHERE in ${RESDB_PATH}/db/dom/*;do
echo -n generating .${TLD} TLD zonefile...
echo "; this zonefile genreated on: `date`" > "$ANO_ZONEFILE"
echo '$TTL 3600' >> "$ANO_ZONEFILE"
- echo '@ IN SOA localhost. root.localhost. ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE"
- echo '@ IN NS localhost.' >> "$ANO_ZONEFILE"
- echo 'localhost. IN A 127.0.0.1' >> "$ANO_ZONEFILE"
+ echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE"
+ echo '@ IN NS @' >> "$ANO_ZONEFILE"
+ echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE"
for name in *;do
if [ -e "${name}/ns/" ];then