From a410ba172b5dd7a0b8998cffcf1b7d0a874a0578 Mon Sep 17 00:00:00 2001 From: Philipp Sperber Date: Tue, 31 Mar 2020 15:27:11 +0200 Subject: [PATCH] Made time to live configurable --- nsupdate.d/dist.config.sample | 3 +++ nsupdate.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nsupdate.d/dist.config.sample b/nsupdate.d/dist.config.sample index 185200e..b22d7d4 100755 --- a/nsupdate.d/dist.config.sample +++ b/nsupdate.d/dist.config.sample @@ -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" diff --git a/nsupdate.sh b/nsupdate.sh index b5d8c34..c991a7d 100755 --- a/nsupdate.sh +++ b/nsupdate.sh @@ -118,7 +118,7 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then ttl - 300 + $TTL @@ -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