Bug #10799
closedDynamic DNS auto update
0%
Description
I have already asked reddit.com/r/pfsense and IRC but I couldn't solve my issue so I am asking here.
I have set up two dynamic DNS clients some time ago on my pfsense router (2.4.5-RELEASE-p1). One is disabled and greyed out in "Services / Dynamic DNS / Dynamic DNS Clients", the other one is enabled and the cached IP address is green.
I tried editing the IP at my registrar, then clicking the "Save & Force Update" button reverted the change.
Then I wanted to see if I could do it over SSH. I noticed this line in `/etc/crontab`:
1 1 * * * root /usr/bin/nice -n20 /etc/rc.dyndns.update
I executed it over SSH but it didn't seem to do anything.
/etc/rc.dyndns.update (https://github.com/pfsense/pfsense/blob/a3dea116f9ce533c7752939a8c7f75582dccd492/src/etc/rc.dyndns.update) seems to basically call services_dyndns_configure()(https://github.com/pfsense/pfsense/blob/a3dea116f9ce533c7752939a8c7f75582dccd492/src/etc/inc/services.inc#L2021) then services_dnsupdate_process()(https://github.com/pfsense/pfsense/blob/a3dea116f9ce533c7752939a8c7f75582dccd492/src/etc/inc/services.inc#L2700).
The relevant part seems to be services_dnsupdate_process().
In my /cf/conf/config.xml
, I have <dnsupdates></dnsupdates>
. Therefore the following code(https://github.com/pfsense/pfsense/blob/a3dea116f9ce533c7752939a8c7f75582dccd492/src/etc/inc/services.inc#L2707) is executed, so services_dnsupdate_process() returns 0 and doesn't do anything.
/* Dynamic DNS updating active? */
if (!is_array($config['dnsupdates']['dnsupdate'])) {
return 0;
}
I waited overnight after editing the IP at my registrar to see if that cron job worked but it didn't seem to change anything.
So the only thing I could do is "Save & Force Update", which works but the cron job doesn't seem to work. Would you know why my dynamic DNS auto update feature doesn't work? Is <dnsupdates></dnsupdates>
in my config.xml
wrong? Did I miss a setting?
Thanks for your help :).