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

    [solved] Dynamic DNS with private WAN address

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 5.4k 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
      darxmurf
      last edited by

      Hi there,

      Quick question, I have this setup

      [ LAN ]–----------[192.168.1.100 PFSENSE 10.0.0.2]–----------[10.0.0.1 DLS ROUTER public-ip]–----------[INTERNET]

      In my setup I have 2 Dynamic DNS accounts

      • DynDNS
      • No-Ip

      But as the WAN interface is private, the update dosen't look ok.
      Is there any special option I should set somewhere in a config file ?
      Thanks in advance

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

        @darxmurf:

        But as the WAN interface is private, the update dosen't look ok.

        What update? Where did you look and what about it doesn't look OK?

        @darxmurf:

        Is there any special option I should set somewhere in a config file ?

        Did you use pfSense WEB GUI page Services -> Dynamic DNS?

        From memory, dynamic DNS entries corresponding to pfSense boxes where the monitored interface has a private IP address are checked (polled) at 1AM. If the monitored interface has a public IP address changes in the IP address are pass on to the Dynamic DNS.

        Here's the shell command to get the dynamic DNS information out of the system log and what it reported on my system:

        clog /var/log/system.log | grep -i dyndns

        Dec 19 01:01:02 pfSense php: : DynDns: updatedns() starting
        Dec 19 01:01:02 pfSense php: : DynDns debug information: 203.144.23.156 extracted from local system.
        Dec 19 01:01:02 pfSense php: : DynDns: Current WAN IP: 203.144.23.156 Cached IP: 203.144.23.156
        Dec 19 01:01:02 pfSense php: : phpDynDNS: No change in my IP address and/or 25 days has not passed. Not updating dynamic DNS entry.
        Dec 19 15:18:14 pfSense php: : DynDns: updatedns() starting
        Dec 19 15:18:14 pfSense php: : DynDns debug information: 203.144.5.63 extracted from local system.
        Dec 19 15:18:14 pfSense php: : DynDns: Current WAN IP: 203.144.5.63 Cached IP: 203.144.23.156
        Dec 19 15:18:14 pfSense php: : DynDns debug information: DynDns: cacheIP != wan_ip.  Updating. Cached IP: 203.144.23.156 WAN IP: 203.144.5.63
        Dec 19 15:18:14 pfSense php: : DynDns: DynDns _update() starting.
        Dec 19 15:18:20 pfSense php: : DynDns: DynDns _checkStatus() starting.
        Dec 19 15:18:20 pfSense php: : DynDns: Current Service: dnsomatic
        Dec 19 15:18:20 pfSense php: : DynDns debug information: 203.144.5.63 extracted from local system.
        Dec 19 15:18:20 pfSense php: : phpDynDNS: updating cache file /conf/dyndns_wandnsomatic'all.dnsomatic.com'.cache: 203.144.5.63

        1 Reply Last reply Reply Quote 0
        • D
          darxmurf
          last edited by

          @wallabybob:

          What update? Where did you look and what about it doesn't look OK?

          The public IP changed and 1 hour after the 2 addresses where still pointing on the old address

          @wallabybob:

          Did you use pfSense WEB GUI page Services -> Dynamic DNS?

          yep

          @wallabybob:

          From memory, dynamic DNS entries corresponding to pfSense boxes where the monitored interface has a private IP address are checked (polled) at 1AM. If the monitored interface has a public IP address changes in the IP address are pass on to the Dynamic DNS.

          Here's the shell command to get the dynamic DNS information out of the system log and what it reported on my system:

          clog /var/log/system.log | grep -i dyndns

          Dec 19 01:01:02 pfSense php: : DynDns: updatedns() starting
          Dec 19 01:01:02 pfSense php: : DynDns debug information: 203.144.23.156 extracted from local system.
          Dec 19 01:01:02 pfSense php: : DynDns: Current WAN IP: 203.144.23.156 Cached IP: 203.144.23.156
          Dec 19 01:01:02 pfSense php: : phpDynDNS: No change in my IP address and/or 25 days has not passed. Not updating dynamic DNS entry.
          Dec 19 15:18:14 pfSense php: : DynDns: updatedns() starting
          Dec 19 15:18:14 pfSense php: : DynDns debug information: 203.144.5.63 extracted from local system.
          Dec 19 15:18:14 pfSense php: : DynDns: Current WAN IP: 203.144.5.63 Cached IP: 203.144.23.156
          Dec 19 15:18:14 pfSense php: : DynDns debug information: DynDns: cacheIP != wan_ip.  Updating. Cached IP: 203.144.23.156 WAN IP: 203.144.5.63
          Dec 19 15:18:14 pfSense php: : DynDns: DynDns _update() starting.
          Dec 19 15:18:20 pfSense php: : DynDns: DynDns _checkStatus() starting.
          Dec 19 15:18:20 pfSense php: : DynDns: Current Service: dnsomatic
          Dec 19 15:18:20 pfSense php: : DynDns debug information: 203.144.5.63 extracted from local system.
          Dec 19 15:18:20 pfSense php: : phpDynDNS: updating cache file /conf/dyndns_wandnsomatic'all.dnsomatic.com'.cache: 203.144.5.63

          EDIT : yep, everyday @01:01

          in my logs the last entry for DynDNS was @7:25 AM this morning (and it's 4:07PM now)

          So is there something to force the DNS check/update every 15 minutes ?

          EDIT : found the solution… with the crontab package you can change the Update Frequency…
          thanks :)

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