mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Feature request: DNS-O-Matic proxy support #291
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vadius45 on GitHub (Jun 20, 2023).
With DNS-O-Matic, we may use a special hostname all.dnsomatic.com to update all registered services at once. I use it to update my OpenDNS dynamic IP, and there's no concept of specific hostname nor domain.
At every refresh, the IP is updated by ddns-updater, most likely because all.dnsomatic.com is not resolvable. Not a critical issue but it could be improved, using the same approach as cloudflare with the proxied option.
https://www.dnsomatic.com/docs/api
My config:
{ "provider": "dnsomatic", "domain": "dnsomatic.com", "host": "all", "username": "foo@bar.com", "password": "xyz", "provider_ip": true, "ip_version": "ipv4" },My updates.json
{ "records": [ { "domain": "dnsomatic.com", "host": "all", "ips": [ { "ip": "217.119.999.999", "time": "2023-06-19T12:27:38.191717834Z" }, { "ip": "217.119.999.999", "time": "2023-06-19T12:37:08.349907078Z" }, { "ip": "217.119.999.999", "time": "2023-06-19T12:47:13.230493395Z" },@qdm12 commented on GitHub (Jan 19, 2024):
Hi there! Thanks for creating this detailed issue! 👍
1ff838e0aeshould sort of fix this. It treats the host "all" as 'proxied', meaning that instead of comparingcurrent public ipagainstresolved ip of all, it will compare it againstlast ip address stored in updates.json. That should reduce updates quite a bit 😉 Cloudflare proxied domains use that already.hostparameter in ddns-updater? If so I'll remove the domain field since it's unnecessary.I'll close the issue assuming it's fixed, but feel free to comment to confirm and/or answer about 2. 😉 Thanks!
@vadius45 commented on GitHub (Feb 4, 2024):
Thanks @qdm12 a lot for the fix : I confirm that the issue is resolved.
About 2 : I am not entirely sure, as I've always used all.dnsomatic.com. And I checked their API documentation, not crystal clear to me. For now, let's not break something that works possibly well for others 🤣