I figured out how to clear a DNS record value that I set, but how would I delete it?
That’s the same thing?
Ok I see what I did wrong. I was looking at daemon.py
to see how the API worked and saw where it said
if value == '':
# request deletion:
So I typed:
curl -k -d "value=''" --user me@mydomain.com:###### https://mydomain.com/admin/dns/set/foo.mydomain.com/cname
This just blanked out the record value instead of deleting the record itself
(foo.mydomain.com CNAME ''
).
I suppose I should have typed instead:
curl -k -d "value=" --user me@mydomain.com:###### https://mydomain.com/admin/dns/set/foo.mydomain.com/cname