Merge pull request #23 from psperber/master

Made time to live configurable
This commit is contained in:
Christian Busch 2020-03-31 19:33:00 +02:00 committed by GitHub
commit 0fdc132f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,9 @@ MX="NO"
# Suppress all messages.
SILENT="NO"
# Time to Live
TTL=300
# Login credentials for the inwx admin interface
INWX_USER="USERNAME"
INWX_PASS="PASSWORD"

View File

@ -118,7 +118,7 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
<member>
<name>ttl</name>
<value>
<int>300</int>
<int>$TTL</int>
</value>
</member>
</struct>
@ -142,6 +142,7 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
unset IPV6
unset MX
unset WAN_IP
unset TTL
unset NSLOOKUP
unset INWX_PASS
unset INWX_USER