DynDNS ipv6 issue
-
I can't get DynDNS working correctly for IPv6, status is X and it shows a red 0.0.0.0 as the cached IP, note Service is Cloudflare (v6) below. The identical entry for ipv4 works just fine. I believe this was working prior to 2503, and if I look at my DNS records at Cloudflare, there's an AAAA record with the correct address on it.
Interface Service Hostname Cached IP Description
WAN Cloudflare (v6) @.graceynet.com 0.0.0.0 Cloudflare -
I'm having the same issue, worked in 24.11 and broken in 25.03.
I put some more effort in this and added some extra logging to figure out which IP it's sending to cloudflare and it's my public IPv4 address instead of the IPv6 one.
I created an issue herehttps://redmine.pfsense.org/issues/16045).
There is also a "patch" there, but I suspect its still broken in more places. Use at your own discretion!That explains this error in the logs
falseFeb 13 08:39:37 php-fpm 97602 /services_dyndns_edit.php: phpDynDNS (wg): UNKNOWN ERROR - Content for AAAA record must be a valid IPv6 address.
-
This post is deleted! -
Thanks for the report. I've made a patch available for testing:
https://redmine.pfsense.org/issues/16045#note-4This can be applied using the System Patches package.
-
@marcosm I installed the patch. The update now works, but it's still the ipv4 address that gets cached and what's shown in the status. Log entries below.
Feb 13 10:26:51 php-fpm 91478 /services_dyndns_edit.php: phpDynDNS (@): (Success) @ updated to 2605:a600:xxxx:xxxx::1
Feb 13 10:26:51 php-fpm 91478 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare-v6'@.mydomain.com'1.cache: 136.49.xxx.xxxI tried to reply in redmine but got the same error mentioned by @bschapendonk about target version blank, he mentioned using edit but I still couldn't get it to work so posting here.
-
Feb 13 18:13:45 php-fpm 623 /services_dyndns_edit.php: Response Data: {"result":{"id":"","name":"wg6.example.com","type":"AAAA","content":"2001:4c3c::","proxiable":true,"proxied":false,"ttl":1,"settings":{},"meta":{},"comment":null,"tags":[],"created_on":"2024-11-14T12:16:34.915135Z","modified_on":"2024-11-14T12:17:14.84684Z"},"success":true,"errors":[],"messages":[]} Feb 13 18:13:45 php-fpm 623 /services_dyndns_edit.php: Dynamic DNS cloudflare-v6 (wg6.example.com): _checkStatus() starting. Feb 13 18:13:45 php-fpm 623 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare-v6'wg6.wg6.example.com'3.cache: 149.143.x.x
I think
$this->_addressFamily
still isn't set to a correct value, hence the IPv4 is cached. Also the GUI show's an IPv4 address now.
But the IPv6 is at least pushed to cloudflare.
-
I've updated the patch on the redmine comment to address a number of issues. Please give it a test.
-
@marcosm The latest patch appears to have corrected the issue. The log now looks good, and the status is now showing the correct value for DynDNS ipv6 address. Thanks Marcos!
-
@marcosm looks good to me
, save + froce update works and the ui is also correct
-
S stephenw10 referenced this topic