diff --git a/dynv6_delegated.sh b/dynv6_delegated.sh index f639ac2..a1958ea 100644 --- a/dynv6_delegated.sh +++ b/dynv6_delegated.sh @@ -44,9 +44,9 @@ if [ "$old" = "$current" ]; then fi # send addresses to dynv6 -curl --silent -H "Authorization: Bearer $token" -H "Accept: application/json" -H "Content-Type: application/json" -X PATCH \ +curl -i --silent -H "Authorization: Bearer $token" -H "Accept: application/json" -H "Content-Type: application/json" -X PATCH \ -d '{"name":"'$hostname'","data":"'$address'","type":"AAAA"}' \ - $api_url | jq + $api_url | grep HTTP | grep -v 200 # save current address echo $current > $file