In order to mitigate the ongoing loss of records I wrote a Script which check for losses.
I want to use the API to recreate the domains. Sadly the v4 A Record gets lost. In order to recreate it I need to issue the update command with an empty A record so that the ip will be updated on update.
This seems not to be possible,
nsupdate <<EOF
server ns1.dynv6.com
zone example.com
update add v4.example.com 0 A
key hmac-sha1:[…]
send
EOF
which throws the error
could not read rdata
syntax error
Does anyone have a working example? is there a special string which needs to be used ?
Thanks in advance!