• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DynDNS ipv6 issue

Scheduled Pinned Locked Moved Plus 25.03 Develoment Snapshots
10 Posts 4 Posters 663 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dstacey147
    last edited by Feb 13, 2025, 1:37 AM

    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

    1 Reply Last reply Reply Quote 1
    • B
      bschapendonk
      last edited by bschapendonk Feb 13, 2025, 10:17 AM Feb 13, 2025, 7:42 AM

      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.
      
      D 1 Reply Last reply Feb 13, 2025, 4:47 PM Reply Quote 2
      • D
        dstacey147 @bschapendonk
        last edited by Feb 13, 2025, 4:47 PM

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • M
          marcosm Netgate
          last edited by Feb 13, 2025, 4:47 PM

          Thanks for the report. I've made a patch available for testing:
          https://redmine.pfsense.org/issues/16045#note-4

          This can be applied using the System Patches package.

          D B 2 Replies Last reply Feb 13, 2025, 4:53 PM Reply Quote 0
          • D
            dstacey147 @marcosm
            last edited by Feb 13, 2025, 4:53 PM

            @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.xxx

            I 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.

            1 Reply Last reply Reply Quote 0
            • B
              bschapendonk @marcosm
              last edited by bschapendonk Feb 13, 2025, 5:20 PM Feb 13, 2025, 5:19 PM

              @marcosm

              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.
              8814d113-e5e7-4d7a-8c28-e1b66aedeea7-image.png

              1 Reply Last reply Reply Quote 0
              • M
                marcosm Netgate
                last edited by Feb 13, 2025, 10:47 PM

                I've updated the patch on the redmine comment to address a number of issues. Please give it a test.

                D B E 3 Replies Last reply Feb 14, 2025, 12:29 AM Reply Quote 0
                • D
                  dstacey147 @marcosm
                  last edited by Feb 14, 2025, 12:29 AM

                  @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!

                  1 Reply Last reply Reply Quote 0
                  • B
                    bschapendonk @marcosm
                    last edited by Feb 14, 2025, 6:33 AM

                    @marcosm looks good to me 👍 , save + froce update works and the ui is also correct

                    1 Reply Last reply Reply Quote 0
                    • S stephenw10 referenced this topic on Feb 14, 2025, 7:53 PM
                    • E
                      eddiew @marcosm
                      last edited by Mar 18, 2025, 4:38 PM

                      @marcosm I have tested and it works well.

                      1 Reply Last reply Reply Quote 1
                      1 out of 10
                      • First post
                        1/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received