I'm trying to write a little bash script that uses the Sonic DDNS API to get my current (dynamic) WAN IP and then updates some of my A records accordingly. See
https://public-api.sonic.net/dyndns/
I pretty much understand how to do this, but I'm not quite clear on the purpose of the API key. Is the API key intended to be a transient thing - i.e. should I get a new API key, for each domain, and then release it every time my script runs? Or is the API key more of a permanent thing, and I should cache a key for each domain in some secure file and then reuse them over and over?
FWIW, I would expect the script to run maybe once a day...
BTW, I'm assuming no one has already written such a script. If somebody has, I'd like to hear about it!
Bob
https://public-api.sonic.net/dyndns/
I pretty much understand how to do this, but I'm not quite clear on the purpose of the API key. Is the API key intended to be a transient thing - i.e. should I get a new API key, for each domain, and then release it every time my script runs? Or is the API key more of a permanent thing, and I should cache a key for each domain in some secure file and then reuse them over and over?
FWIW, I would expect the script to run maybe once a day...
BTW, I'm assuming no one has already written such a script. If somebody has, I'd like to hear about it!
Bob