From 02ce78927cfce517255299b60f94e4b91cfade29 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 1 Aug 2022 22:41:50 +0200 Subject: [PATCH] echo added --- godaddy_ddns_ipv4.sh | 3 ++- godaddy_ddns_ipv6.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/godaddy_ddns_ipv4.sh b/godaddy_ddns_ipv4.sh index 39c5417..f1d65e6 100755 --- a/godaddy_ddns_ipv4.sh +++ b/godaddy_ddns_ipv4.sh @@ -33,7 +33,7 @@ echo "currentIp:" $currentIp if [ $dnsIp != $currentIp ]; then - # echo "Ips are not equal" ## debug + echo "Ips are not equal" request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"A"}]' # echo $request # debug nresult=$(curl -i -s -X PUT \ @@ -41,4 +41,5 @@ if [ $dnsIp != $currentIp ]; -H "Content-Type: application/json" \ -d $request "https://api.godaddy.com/v1/domains/$domain/records/A/$name") echo $nresult + echo "dns record updated" fi diff --git a/godaddy_ddns_ipv6.sh b/godaddy_ddns_ipv6.sh index 3dd8b61..2509088 100755 --- a/godaddy_ddns_ipv6.sh +++ b/godaddy_ddns_ipv6.sh @@ -33,7 +33,7 @@ echo "currentIp:" $currentIp if [ $dnsIp != $currentIp ]; then - # echo "Ips are not equal" # debug + echo "Ips are not equal" request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"AAAA"}]' # echo $request # debug result=$(curl -i -s -X PUT \ @@ -41,4 +41,5 @@ if [ $dnsIp != $currentIp ]; -H "Content-Type: application/json" \ -d $request "https://api.godaddy.com/v1/domains/$domain/records/AAAA/$name") echo $nresult + echo "dns record updated" fi