diff options
author | epoch <epoch@hacking.allowed.ano> | 2015-07-06 14:28:19 +0000 |
---|---|---|
committer | epoch <epoch@hacking.allowed.ano> | 2015-07-06 14:28:19 +0000 |
commit | 85e25c4d49499d5d37251ba370ec6e8b3947f9eb (patch) | |
tree | bb5db4ae9acac463e2210ae0cd945f70e4cbcf3f /scripts/nameserver_autogen/bind_tld_zonefile.sh | |
parent | d4c01eeac699f8ac37c40483c7773257f577824a (diff) | |
download | resdb-85e25c4d49499d5d37251ba370ec6e8b3947f9eb.tar.gz resdb-85e25c4d49499d5d37251ba370ec6e8b3947f9eb.zip |
updated them to have no out-of-zone data.
Diffstat (limited to 'scripts/nameserver_autogen/bind_tld_zonefile.sh')
-rwxr-xr-x | scripts/nameserver_autogen/bind_tld_zonefile.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile.sh b/scripts/nameserver_autogen/bind_tld_zonefile.sh index a86455d..c2b8243 100755 --- a/scripts/nameserver_autogen/bind_tld_zonefile.sh +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh @@ -16,9 +16,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) @@ -35,9 +35,9 @@ echo -n generating .ano 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 |