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

    Namecheap dynamic dns Not Updating

    Scheduled Pinned Locked Moved DHCP and DNS
    37 Posts 9 Posters 18.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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      OK. It's possible that their dyndns API has a problem with that particular setup then. I don't have anything even close to that setup to test.

      I'd need to see the exact update URL used by tomato to know what might fix it.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • T
        Trel
        last edited by

        @jimp:

        OK. It's possible that their dyndns API has a problem with that particular setup then. I don't have anything even close to that setup to test.

        I'd need to see the exact update URL used by tomato to know what might fix it.

        
        	// +opt +opt +opt
        	sprintf(query, "/update?host=%s&domain=%s&password=%s",
        		get_option_required("host"), get_option("user") ? : get_option_required("domain"), get_option_required("pass"));
        
        	// +opt
        	append_addr_option(query, "&ip=%s");
        
        

        I took this from Tomato's source.
        I'm not well versed in coding, but I'm pretty sure that's where it updates to.
        so in my case, it would look like:

        update?host=@&domain=sub.domain.com&password=somethingcomplicated
        
        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          I think I see where the problem might be, in our code, it assumes for .com (and most others) that the domain part is only domain.tld, so it's probably splitting that into @.sub for the host and domain.com for the domain.

          Not sure if there will be any easy way around that, I'll have to dig at it a little.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • T
            Trel
            last edited by

            @jimp:

            I think I see where the problem might be, in our code, it assumes for .com (and most others) that the domain part is only domain.tld, so it's probably splitting that into @.sub for the host and domain.com for the domain.

            Not sure if there will be any easy way around that, I'll have to dig at it a little.

            That implementation looks like it could cause problems with many country tlds such as ".co.uk" or similar as "@.sub.domain.com" has the same separations as "@.domain.co.uk"

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              No, there is code specifically to handle domain.co.uk, there is a list in the client that knows how many levels deep TLDs go and sets exceptions based on the TLDs offered by Namecheap.

              Might have to hack it so if you put in @ for the username and the actual sub.domain.com for the hostname then it would do the right thing… might be a bit before I'd have a chance to take a crack at it, I haven't touched the dyndns code in a while, it's not terribly complex though.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • T
                Trel
                last edited by

                @jimp:

                No, there is code specifically to handle domain.co.uk, there is a list in the client that knows how many levels deep TLDs go and sets exceptions based on the TLDs offered by Namecheap.

                Might have to hack it so if you put in @ for the username and the actual sub.domain.com for the hostname then it would do the right thing… might be a bit before I'd have a chance to take a crack at it, I haven't touched the dyndns code in a while, it's not terribly complex though.

                Since the "@" and the no username part only exists for namecheap, I can't imagine it being too difficult to do that with an if statement in general.
                Other than the program the other person linked earlier, is there any interim solution I can do in the mean time?

                Is curl or wget installed by default?  If so I imagine I could temporarily install the cron package and do it that way.

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  "fetch" is there, curl may or may not be there depending on the packages you have installed.

                  fetch is capable of grabbing/hitting a page, e.g.:

                  fetch -o /dev/null http://blah.blah/blah
                  

                  That would make a page request and ignore the result.

                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  1 Reply Last reply Reply Quote 0
                  • T
                    Trel
                    last edited by

                    @jimp:

                    "fetch" is there, curl may or may not be there depending on the packages you have installed.

                    fetch is capable of grabbing/hitting a page, e.g.:

                    fetch -o /dev/null http://blah.blah/blah
                    

                    That would make a page request and ignore the result.

                    This look good (as I'm not quite familiar with fetch)

                    /usr/bin/nice -n20 fetch -o /dev/null https://dynamicdns.park-your-domain.com/update?host=@&domain=sub.domain.com&password=<password></password>
                    
                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Be sure to enclose the URL in quotes, but otherwise, yeah I think it looks OK.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • J
                        JohnnyBeGood
                        last edited by

                        I have same issue. At one point I was able to update domain.net with @.domain.net under hostname but not subdomain.domain.net
                        Now nothing's updating. IP ADDRESS never updates and stays at 127.0.0.1 . I deleted multiple times everything. Chatted with support but their response is to use different client or manually update ip, how will I know if it will work once IP changes??

                        My goal was to have unused domain for dynamic DNS.

                        My register is still godaddy.
                        If someone has it working with other service please share. I would be willing to transfer my domain there for about 10-15 per year.

                        Here's some screenshots:

                        http://i.imgur.com/3mcVlNw.png

                        http://i.imgur.com/72hO7Li.png

                        http://i.imgur.com/KjLJeyh.png

                        http://i.imgur.com/Hwtf55P.png

                        I like to fill my tub up with water, then turn the shower on and act like I'm in a submarine that's been hit!

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by

                          I have been using Namecheap ddns for years, had a problem once when their servers went down, but since then all is well.

                          I use a single subdomain.domainname.com with the subdomain record type set to A (address)

                          I haven't tried it with the @ hostname setting yet.

                          I also use the free dyndns service as a backup. I wished the pfsense service would force a connection to their server every few weeks.

                          1 Reply Last reply Reply Quote 0
                          • T
                            Trel
                            last edited by

                            Was this ever fixed for Namecheap, or do I still need to use the cron job and fetch?

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