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

    Namecheap Dynamic DNS cached ip 0.0.0.0 issue

    Scheduled Pinned Locked Moved DHCP and DNS
    19 Posts 7 Posters 2.7k 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.
    • T
      tribesstorm
      last edited by

      Looks like this is an issue with a number of Dynamic DNS services. I'm wondering if anyone has a patch/solution for this issue I can add. I'm using the Namecheap service.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @tribesstorm
        last edited by

        @tribesstorm
        What pfSEnse version ?

        Namecheap had an issue on there side, and a work around had to be created. That was several months ago.
        The pfSense patch package has taken care of that one.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        T 1 Reply Last reply Reply Quote 0
        • T
          tribesstorm @Gertjan
          last edited by tribesstorm

          @gertjan I'm using version 22.05, the latest one.

          223434234.png

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @tribesstorm
            last edited by

            @tribesstorm

            That log doesn't shows errors.

            What log are you showing ?
            Mine looks easier to read :
            a8940ca1-b12b-4532-9aca-d3f034af99db-image.png

            I'm using 22.05, and it includes the latest corrections related to namecheap, to patch their major F*ckup (namecheap confirmed they messed up, but as it is a cheap service, they were not in a hurry to repair - understandable - see this forum for detail, some months ago).

            If namecheap messed up again, just waut, many will post here with the same issue, and a new solution would come out fast.
            I can't test their services, as I do not use them - you understand why ;)

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            T 1 Reply Last reply Reply Quote 0
            • T
              tribesstorm @Gertjan
              last edited by

              @gertjan Capture.PNG

              Here's more of the log. Does this tell you anything?

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @tribesstorm
                last edited by

                @tribesstorm
                Seems the update is working, but pfSense doesn't understand the servers response.
                Possibly they have changed it again.

                You can try to configure a custom update client instead, which ignores the response.

                T 1 Reply Last reply Reply Quote 0
                • T
                  tribesstorm @viragomann
                  last edited by tribesstorm

                  @viragomann I think I'm just about done with namecheap, What's your recommended alternative registrar that works well with pfsense?

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @tribesstorm
                    last edited by

                    @tribesstorm
                    As said, the DNS update seems to succeed. You can verify by an nsuplook.

                    But pfSense checks the server respond, when using the Namecheap client and compares it with its hard-coded success-answer. If that doesn't match it throws an error for the update.
                    You can configure a custom client and leave the "Result Match" box blank, so the response is not verified, or even enter what Namecheap actually give back, when the update succeeded.

                    What's your recommended alternative registrar that works well with pfsense?

                    But yeah, seems Namecheap changes its response quite often.
                    I'm using the SPDYN and freeDNS for years without such issues.

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      tribesstorm @viragomann
                      last edited by

                      @viragomann Thanks! It looks like creating a custom entry worked.

                      1 Reply Last reply Reply Quote 0
                      • V viragomann referenced this topic on
                      • V viragomann referenced this topic on
                      • S
                        samh
                        last edited by

                        This could be a change by namecheap again but you can see in the logs posted that the errcount does indeed equal 0 so it seems like PFsense is not parsing it correctly. Any suggestions as to how we can fix it so we don't have to use a custom service without a reponse as that seems to just remove the response and not do any verification that the DNS is actually updated. I I can manually check but ideally, I would like pfsense to be able to check it so I can see visually on the dashboard that records are updated without having to manually check.

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          viragomann @samh
                          last edited by

                          @samh said in Namecheap Dynamic DNS cached ip 0.0.0.0 issue:

                          you can see in the logs posted that the errcount does indeed equal 0 so it seems like PFsense is not parsing it correctly.

                          Yeah, as mentioned above here, updating the DNS will work anyway, but pfSense gets no confirmation from the server.

                          pfSense is expecting specific known response data, but the server sends something else. Hence it says "unknown response" and cannot confirm that the update succeed.

                          The expected response is hard-coded in pfSense. But hey, it's open source, so you can change it if you want.

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            samh @viragomann
                            last edited by

                            @viragomann Thanks for the response. Unfortunately, not a skilled developer (I only dabble) so I took the path of least resistance and moved to another Dynamic DNS Provider.

                            1 Reply Last reply Reply Quote 0
                            • W
                              wazari
                              last edited by

                              Got the same issue here. Found the problem is the utf-16 vs utf-8 response Netgate expects. You can fix it but you have to edit /etc/inc/dyndns.class

                              Goto line 1712 and change $data to $data_tmp so the line is:
                              $data_tmp = substr($response, $header_size);

                              Then add this line underneath it:
                              $data = str_replace("utf-16", "utf-8", $data_tmp);

                              This will get you your green status and cahed ip.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                SteveITS Galactic Empire @wazari
                                last edited by

                                @wazari The System Patches package has an entry "Fix Namecheap Dynamic DNS response processing (Redmine #12816)". Per that redmine it was fixed/patched, broke again, and was patched again.

                                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                Upvote ๐Ÿ‘ helpful posts!

                                W A 2 Replies Last reply Reply Quote 0
                                • W
                                  wazari @SteveITS
                                  last edited by

                                  @steveits - Which patch package is that as i'm running the 3100 netgate with 22.05 stable and it's up-to-date.. Ahh i see in the Redmine issue: the plus target is 23.01. That is still the dev version. I'm running the stable so when 23.01 becomes stable this won't be an issue anymore.

                                  Thanks

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    SteveITS Galactic Empire @wazari
                                    last edited by SteveITS

                                    @wazari System Patches is an add on package by Netgate that has fixes not in the release versions. The fixes eventually roll into the next version of pfSense.

                                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                    Upvote ๐Ÿ‘ helpful posts!

                                    W 1 Reply Last reply Reply Quote 0
                                    • W
                                      wazari @SteveITS
                                      last edited by

                                      @steveits - Yes saw it. Thanks..
                                      So for now my 22.05 version works with the fix, thats fine

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        aheadalarmroom @SteveITS
                                        last edited by

                                        @steveits Patch is not available in Patches for people running PFSense+ v22.05

                                        S 1 Reply Last reply Reply Quote 0
                                        • S
                                          SteveITS Galactic Empire @aheadalarmroom
                                          last edited by

                                          @aheadalarmroom On 22.05 I have applied:
                                          Namecheap DDNS on 22.05

                                          Ensure you have the latest Patches package. They add patches via a package update as opposed to an external list.

                                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                          Upvote ๐Ÿ‘ helpful posts!

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.