I'm trying to set up a cron job to regularly update my DNS record for my home IP with the dyndns service, but I'm not able to get it to work.
I own the domain rknop.net, and sonic is where I have it registered. (I usually update records using the web interface at Sonic member tools.)
I run:
(where I have put the right thing in for <password> -- that's not really my password!). I get back an HTTP 401 (unauthorized).
Is there something I'm doing wrong here?
I own the domain rknop.net, and sonic is where I have it registered. (I usually update records using the web interface at Sonic member tools.)
I run:
Code: Select all
curl -X POST https://public-api.sonic.net/dyndns/api_key --data '{"username": "rknop", "password": "<password>", "hostname": "home.rknop.net" }'
Is there something I'm doing wrong here?