changeset 1182:135e7c234e24 draft

updated them to have no out-of-zone data.
author epoch <epoch@hacking.allowed.ano>
date Mon, 06 Jul 2015 14:28:19 +0000
parents 8f69093c1f14
children b3428297f53b
files scripts/nameserver_autogen/bind_tld_zonefile.sh scripts/nameserver_autogen/bind_tld_zonefile_all.sh
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh	Thu Apr 02 09:18:59 2015 +0000
+++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh	Mon Jul 06 14:28:19 2015 +0000
@@ -16,9 +16,9 @@
 
 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 "; 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
--- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh	Thu Apr 02 09:18:59 2015 +0000
+++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh	Mon Jul 06 14:28:19 2015 +0000
@@ -19,9 +19,9 @@
 
 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 @@
  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