It is connected to the Internet via a mobile broadband router.
The site is 100 km away and in wintertime I don't often go there.
I have installed ddclient on the RPi in order to set the ip address of the dynamic host I use to access the site.
The router forwards SSH calls to the RPi and so I can access it to do maintenance etc using PuTTY from home.
Recently the router has started to reconnect to the mobile network frequently and every time it gets a different address and I lose connectivity until it has updated dynamic DNS. So now I think I have to shorten the ddclient checking interval to make it update the DNS record more frequently.
Questions have arisen:
1) Does ddclient first check its external IP address and compare against the DNS reported address before sending an update?
2) Can I set the update interval as low as 60 seconds or less without getting problems with the dynamic dns provider?
3) If I change the conf file, how do I activate the new settings?
My current conf looks like this:
Code: Select all
# Configuration file for ddclient
# /etc/ddclient.conf
daemon=300
ssl=yes
custom=yes
protocol=dyndns2
use=web, web=dns.loopia.se/checkip/checkip.php, web-skip='Current IP Address:'
server=dns.loopia.se/XDynDNSServer/XDynDNS.php
login=xxxxxxxx.com
password='*********'
wildcard=yes
yyy.xxxxxxxx.com
In these cases I can use the logged IP address on my server to connect, but it would be much better if the RPi could update the address whenever it changes through the ddclient. The temp measurements are done once per hour so in between the IP address may have changed..
NOTE:
While I was writing this post I connected to the remote RPi in order to copy the conf file content and show it above.
When I was done and wanted to exit nano, the IP address had changed again and I lost connection...