[solved] Dynamic DNS with private WAN address
-
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 -
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?
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 -
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
Did you use pfSense WEB GUI page Services -> Dynamic DNS?
yep
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.63EDIT : 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 :)