Update the script to get zone id and record it automatically
Closed this issue · 5 comments
I no longer use Synology to update DDNS. So, I probably would not update it myself. Pull request is welcome.
If someone want to try, see my script in docker. It should be a simple port.
I have written a bash script that should do the job of this script. You can find it on my github page here
@MachineITSvcs I already have a script that does it as I mentioned above. But I just do have time for changing it for Synology and test it out. If you want to update this script, you can make a pull request.
CloudFlare has provided a large collection of examples using their API v4 in different languages. One example in python does DDNS update with automatical zone id and record retrieval. I modified it a little bit so that it can work with synology DDNS management. You can find my code and the instruction of usage in my repository.
A better Cloudflare DDNS provider for Synology can be found here.
- Can be configured via root domain record, e.g.
example.com
as your DDNS name - Installable via
pip
- Correctly handles domains with country suffixes like
.co.uk
, etc.
The script is updated