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

    Cloudflare DDNS Failing update after hostname change

    Scheduled Pinned Locked Moved DHCP and DNS
    9 Posts 2 Posters 1.3k 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.
    • P
      posix
      last edited by

      Hello,

      I had Cloudflare/DDNS working fine since 2.4.5-1 and updated to 22.01 on a SG-5100.

      I recently tried to change the hostname of the firewall and soon noticed that DDNS was not updating cloudflare using API token.

      Seeing below message when forcing an update:

      Jun 20 19:08:45	php-fpm	2421	/services_dyndns_edit.php: phpDynDNS (gateway1): PAYLOAD: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null}
      Jun 20 19:08:45	php-fpm	2421	/services_dyndns_edit.php: phpDynDNS (gateway1): UNKNOWN ERROR - Invalid request headers
      
      1 Reply Last reply Reply Quote 0
      • P
        posix
        last edited by posix

        This post is deleted!
        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @posix
          last edited by

          @posix Cloudflare outage on June 21, 2022

          P 1 Reply Last reply Reply Quote 0
          • P
            posix @Bob.Dig
            last edited by

            @bob-dig thanks for the response but this issue started yesterday June 20 EST.

            They said its resolved but I am still seeing the following screen shots:

            Screen Shot 2022-06-21 at 8.32.06 PM.png Screen Shot 2022-06-21 at 8.33.18 PM.png

            1 Reply Last reply Reply Quote 0
            • P
              posix
              last edited by

              I am currently seeing this on dashboard

              Int.	Service	        Hostname	                Cached IP
              WAN	Cloudflare	NEW_HOSTNAME.DOMAIN.XZY 	N/A 11:14:16
              There are also two files located in /conf directory
              
              -rw-r--r--  1 root  wheel      24 Jun 19 15:04 dyndns_wancloudflare'old_hostname.DOMAIN.XYZ'0.cache
              -rw-r--r--  1 root  wheel      24 Jun 20 22:53 dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache
              

              Could these files have anything to do with cached IP status? I have tried to delete them using 'rm -f' command but not sure they are doing anything.

              Later logs:

              Jun 20 22:53:05	php-fpm	52454	/services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache: WAN_IP_ADDRESS
              Jun 20 22:53:05	php-fpm	52454	/services_dyndns_edit.php: phpDynDNS (new_hostname): (Success) new_hostname updated to WAN_IP_ADDRESS
              <output omitted>
              
              Jun 20 22:59:45	php-fpm	75932	/rc.dyndns.update: phpDynDNS (new_hostname.DOMAIN.XYZ): No change in my IP address and/or 25 days has not passed. Not updating dynamic DNS entry.
              

              I reset the API Key with DNS edit permission and confirmed it work. What I see now is that it using .cache files?

              1 Reply Last reply Reply Quote 0
              • P
                posix
                last edited by posix

                I just tried turning on verbose logging and after clicking force update it timed out. saw the following and the session timed out:

                Jun 21 23:48:39	php-fpm	52454	/services_dyndns_edit.php: Configuration Change: USERNAME@IP_ADDRESS (Local Database): Dynamic DNS client configured.
                Jun 21 23:48:39	check_reload_status	2461	Syncing firewall
                Jun 21 23:48:39	php-fpm	52454	/services_dyndns_edit.php: Beginning configuration backup to https://acb.netgate.com/save
                Jun 21 23:48:40	php-fpm	52454	/services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache: WAN_IP_ADDRESS
                Jun 21 23:48:40	php-fpm	52454	/services_dyndns_edit.php: phpDynDNS (NEW_HOSTNAME): (Success) NEW_HOSTNAME updated to WAN_IP_ADDRESS
                Jun 21 23:49:00	php	97241	/usr/local/sbin/acbupload.php: End of configuration backup to https://acb.netgate.com/save (success).
                Jun 21 23:51:39	nginx		2022/06/21 23:51:39 [error] 2017#100213: *2126 upstream timed out (60: Operation timed out) while reading response header from upstream, client: IP_ADDRESS, server: , request: "POST /services_dyndns_edit.php?id=0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "new_hostname.DOMAIN.XYZ", referrer: "https://new_hostname.DOMAIN.XYZ/services_dyndns_edit.php?id=0"
                
                1 Reply Last reply Reply Quote 0
                • P
                  posix
                  last edited by

                  Is there any way to resolve the Cached IP status?

                  Screen Shot 2022-06-21 at 8.33.18 PM.png

                  1 Reply Last reply Reply Quote 0
                  • P
                    posix
                    last edited by

                    Hello,

                    Can anyone offer guidance/assistance as to why I am still seeing N/A under cached IP?

                    Screen Shot 2022-06-27 at 12.09.16 AM.png

                    1 Reply Last reply Reply Quote 0
                    • P
                      posix
                      last edited by

                      Issue has been resolved successfully upgraded to 22.05.

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