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

    Dynamic DNS Not Updating when PPPoE Interface IP Changes

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 1.6k 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.
    • J
      joako
      last edited by

      I see in the logs:

      php: rc.newwanip: Curl error occurred: Failed connect to [host]:80; Operation timed out

      If I go in to the edit page and press save it updates without a problem.

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

        So what I notice is the filter reloads after the dyndns update attempt. So in /etc/rc.newwapip I took the lines:

        /* signal dyndns update */
              services_dyndns_configure($interface);

        And moved those to be after the filter reload:

        filter_configure();

        And now it works, but why it this a feature!?

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          You would have to have some really unusual rule set for it to need the filter_configure() to happen before traffic could get out to do the dynamic DNS update. My guess is there is some timing thing here - by the time all the other processing has happened the PPPoE has really established and is working. Or maybe you have VPN to a VPN provider and are routing traffic over that to the internet, and so that needs to come back up before dynamic DNS can talk, or?
          Post details of anything like that in your configuration.

          Try moving "services_dyndns_configure($interface);" to just after the IPsec and OpenVPN reloads - it would be interesting to know if it still works there.

          And is this reproducible?
          i.e. with the original code is it always a problem? and with the change is it always good?

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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

            This is just a standard PPPoE DSL connection. I've searched and found other mentions of this error.

            I did attempt to put something like sleep(30); before services_dyndns_configure($interface); line and that did not help. I also tracked down the actual HTTP request in the dyndns code and out the sleep(30); there again with no effect.

            I can reproduce it consistently. Unplugging the modem without the code change I would never get the Dynamic DNS updated automatically – it always required manually editing the configuration to force an update. Aftter the code change it always works.

            This is multiwan so my theory is the WAN2 isn't opened up to routing traffic through it until the filter is reloaded.

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

              Humm, interessting.
              Read here for some more info https://forum.pfsense.org/index.php?topic=72514.msg427622#msg427622 - I guess I have the same issue.

              I've a work around proposed over there.
              The end of /etc/rc.newwanip:

              
                      .......
                      restart_packages();
              
                      filter_configure();
                      sleep(5);
                      log_error("rc.newwanip: Done some sleeping. Go for DynDNS ...");
              
                      /* perform RFC 2136 DNS update */
                      services_dnsupdate_process($interface);
              
                      /* signal dyndns update */
                      services_dyndns_configure($interface);
              
              } else
              
                      /* signal filter reload */
                      filter_configure();
              
              ?>
              

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

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