Switch to using nslookup, which should come with nsupdate.
This commit is contained in:
parent
4d5ad57d52
commit
b46b8b1eae
@ -7,7 +7,8 @@ host=desktop
|
||||
secret=""
|
||||
|
||||
ip=$(wget -4 -q -O - http://treehouse.org.za/ip)
|
||||
set_ip=$(dig +short ${host}.${zone})
|
||||
#set_ip=$(dig +short -t a ${host}.${zone})
|
||||
set_ip=$(nslookup -type=a ${host}.${zone} | awk '/^Address: / { print $2 }')
|
||||
|
||||
if [ -z ${ip} ] || [ -z ${cache} ]; then
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user