diff options
author | cathugger <cathugger@cock.li> | 2017-03-10 00:46:19 +0000 |
---|---|---|
committer | cathugger <cathugger@cock.li> | 2017-03-10 00:46:19 +0000 |
commit | 2fcb108ff7e084510882ab1bc4d6298696e73e0e (patch) | |
tree | 96153b701c903d4b85d4deefddb19ac222854c6f /scripts/nameserver_autogen/bind_tld_zonefile_all.sh | |
parent | a2574d61d6df5a652e3ef136a0a5d70d764af711 (diff) | |
download | resdb-2fcb108ff7e084510882ab1bc4d6298696e73e0e.tar.gz resdb-2fcb108ff7e084510882ab1bc4d6298696e73e0e.zip |
use UTC for dates, 1->21
Diffstat (limited to 'scripts/nameserver_autogen/bind_tld_zonefile_all.sh')
-rwxr-xr-x | scripts/nameserver_autogen/bind_tld_zonefile_all.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh index ccf0a3a..3715881 100755 --- a/scripts/nameserver_autogen/bind_tld_zonefile_all.sh +++ b/scripts/nameserver_autogen/bind_tld_zonefile_all.sh @@ -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 @@ fi 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 @@ for GOHERE in ${RESDB_PATH}/db/dom/*;do 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" |