Mercurial > hg > anonet-resdb
changeset 1191:56c959ab3e05 draft
use UTC for dates, 1->21
author | cathugger <cathugger@cock.li> |
---|---|
date | Fri, 10 Mar 2017 00:46:19 +0000 |
parents | dae39c508416 |
children | a0de6dd1652e |
files | scripts/nameserver_autogen/bind_tld_zonefile.sh scripts/nameserver_autogen/bind_tld_zonefile_all.sh |
diffstat | 2 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/nameserver_autogen/bind_tld_zonefile.sh Thu Mar 09 23:58:05 2017 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile.sh Fri Mar 10 00:46:19 2017 +0000 @@ -12,15 +12,15 @@ fi -echo -n "generating ipv4 reverse lookup zonefile for 1/8..." +echo -n "generating ipv4 reverse lookup zonefile for 21/8..." -echo "; this zonefile genreated on: `date`" > "$RDNS_ZONEFILE" +echo "; this zonefile genreated on: `date -u`" > "$RDNS_ZONEFILE" echo '$TTL 3600' >> "$RDNS_ZONEFILE" -echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE" +echo '@ IN SOA @ root ('`date -u +" %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 +for i in `ls ${RESDB_PATH}/db/ip/15/*/*/ns/*`;do f=$(basename $i) a=$(basename $(dirname $i)) b=$(basename $(dirname $(dirname $i))) @@ -33,9 +33,9 @@ echo -n generating .ano TLD zonefile... -echo "; this zonefile genreated on: `date`" > "$ANO_ZONEFILE" +echo "; this zonefile genreated on: `date -u`" > "$ANO_ZONEFILE" echo '$TTL 3600' >> "$ANO_ZONEFILE" -echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE" +echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE" echo '@ IN NS @' >> "$ANO_ZONEFILE" echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE"
--- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh Thu Mar 09 23:58:05 2017 +0000 +++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh Fri Mar 10 00:46:19 2017 +0000 @@ -3,7 +3,7 @@ #be sure to edit these variables first. #ZONEFILE_DIR=/etc/namedb -RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa +#RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa #RESDB_PATH=/var/db/resdb if [ ! "$ZONEFILE_DIR" ];then @@ -14,9 +14,9 @@ echo -n "generating ipv4 reverse lookup zonefile for 21/8..." -echo "; this zonefile genreated on: `date`" > "$RDNS_ZONEFILE" +echo "; this zonefile genreated on: `date -u`" > "$RDNS_ZONEFILE" echo '$TTL 3600' >> "$RDNS_ZONEFILE" -echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE" +echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$RDNS_ZONEFILE" echo '@ IN NS @' >> "$RDNS_ZONEFILE" echo '@ IN A 127.0.0.1' >> "$RDNS_ZONEFILE" @@ -35,9 +35,9 @@ TLD=$(basename ${GOHERE}) ANO_ZONEFILE=${ZONEFILE_DIR}/${TLD} echo -n generating .${TLD} TLD zonefile... - echo "; this zonefile genreated on: `date`" > "$ANO_ZONEFILE" + echo "; this zonefile genreated on: `date -u`" > "$ANO_ZONEFILE" echo '$TTL 3600' >> "$ANO_ZONEFILE" - echo '@ IN SOA @ root ('`date +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE" + echo '@ IN SOA @ root ('`date -u +" %Y%m%d%H"`' 60 300 3600000 3600 )' >> "$ANO_ZONEFILE" echo '@ IN NS @' >> "$ANO_ZONEFILE" echo '@ IN A 127.0.0.1' >> "$ANO_ZONEFILE"