ddns-scripts: no longer break using nslookup and option force_ipversion=1

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
Christian Schoenebeck
2016-09-25 11:11:28 +02:00
parent 7805abc6c4
commit f0b96d9109
3 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -15,9 +15,9 @@
#
# variable __IP already defined with the ip-address to use for update
#
__TTL=600 #.preset DNS TTL (in seconds)
__RRTYPE __PW __TCP
__PROG=$(which nsupdate) # BIND nsupdate ?
local __TTL=600 #.preset DNS TTL (in seconds)
local __RRTYPE __PW __TCP
local __PROG=$(which nsupdate) # BIND nsupdate ?
[ -z "$__PROG" ] && __PROG=$(which knsupdate) # Knot nsupdate ?
[ -z "$__PROG" ] && write_log 14 "'nsupdate' or 'knsupdate' not installed !"