plugins: Dynamic DNS (dyndns) - FreeDNS Update broken
Describe the bug The FreeDNS service will not update the IP anymore due to a broken URL. Teh first failure in my logs was on May 27 2021. The log shows a 404 error.
To Reproduce Steps to reproduce the behavior:
- Install the os-dyndns package
- Create a Dynamic DNS configuration in “Services->Dynamic DNS”
- Set Service type as “freeDNS”
- Set Interface to monotor as your WAN
- Set hostname to your freeDNS hostname
- Leave Username blank
- Set the freeDNS TOKEN as your password (can be found on the freeDNS website as your direct link or in the CURL script it generates for you)
- Save and Force update
Expected behavior The Dashboard app and FreeDNS site show your WAN IP as cached or as the A record.
Relevant log files
From the /var/cache/dyndns_wan_MYDOMAIN_0.cache.debug
05-28-21 01:11:00 - (5542351) - [freedns] - Error 404 : Page not found
Environment OPNsense 21.1.6-amd64
Resolution
The URL in plugins/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc is incorrect.
Line 567 contains the URL https://sync.afraid.org/u/
This should be https://freedns.afraid.org/dynamic/update.php?
For more info on the correct URL see: https://freedns.afraid.org/dynamic/ (Login required)
When changed locally in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc this resolved the problem
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 29 (12 by maintainers)
Commits related to this issue
- Use the righ URL for FreeDNS Needed to close upstream issue: opnsense/plugins#2428 — committed to opnsense/plugins by andrewhotlab 3 years ago
If - for some reason - some people cannot update to freeDNS v2, then it could be an idea to provide both: “freeDNS v1” with the URL “https://freedns.afraid.org/dynamic/update.php?TOKENV1/” and a second “freeDNS v2” with the URL “https://sync.afraid.org/u/TOKENV2/”. That way, everyone could use the freeDNS version he wants …
Fair enough. However for me, freeDNS has always been reliable (five years using v1 and the last few weeks using v2), so I’m reluctant to switching services. I’m a big fan of “if it ain’t broke, don’t fix it”. And from my perspective, it’s not freeDNS that is broken.
If there are 2 versions offered the users have to inform themselves anyway. And if they can copy/paste a token they can copy/paste a URL. It’s offered right there on the FreeDNS website.
But either way is fine, both work for me. As long as it stops changing.