DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
after the system boots I grep and see the following process running
"perl -w /usr/sbin/ddclient -daemon 300 -syslog"
To me, that translates into, I am going to update dyndns every 300 seconds and write my output to my syslog.
Nothing is getting written to syslog.
"ddclient -daemon=0 -debug -verbose -noquiet" This runs sucessfully.
Its almost as if I need to set up a cron job to run the above command every so often to update dyndns, but I shouldnt have to. Why isnt ddclient not updating or writing to my syslog.
ddclient only does an update when the IP address changes, unless you call for a forced update. It only writes to the syslog when it starts, stops, does an IP update or attempts to do an update and the IP address has not changed. The real test is whether it updates dyndns within 5 min. of an IP address change.
Think about it for a minute. Would you really want something writing a syslog entry every 5 min. saying “I’m OK”?
This makes sense, except the IP address of this box never changes, it has network address and I use port forwarding on my router to direct me to this box. The IP address obtain by my router is the router I need updated.
How should I resolve this issue, Should I set up a cron-job for every 1-2hrs?
according to your config, you're getting the ip from checkip.dyndns.org which returns your external address. Look at /var/cache/ddclient/ddclient.cache to see what ip it's seeing/setting.
Every 5 min, it compares the probe of the IP source to what is in /etc/ddclient/ddclient.cache (ddclient-3.6.6). If the source IP address changed, then it updates dyndns and ddclient.cache.
Regarding running ddclient as a cron job, if you set ddclient up using the RedHat-style rc configuration as described in the README file, it is running as a daemon and does not need to be restarted periodically.
If you did not install ddclient that way, then Yes, you need to periodically run it.
Maybe you are getting a bad IP reading. Try running:
ddclient -daemon=0 -query
and you will get a listing of all the IP addresses supplied by the various use= options available for getting the inbound ip address. I set up ddclient to read the router directly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.