LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-24-2005, 02:24 PM   #1
boyd98
Member
 
Registered: Oct 2003
Posts: 156

Rep: Reputation: 15
ddclient will not update


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.


Here is my current config.

pid=/var/run/ddclient.pid
protocol=dyndns2
#use=if, if=eth0
use=web, web=checkip.dyndns.org, web-skip='IP Address'
server=members.dyndns.org
login=xxxx
password=xxxx
xxxx.homelinux.com


Thanks in advance,

Boyd
 
Old 04-25-2005, 10:59 PM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
maybe it is a firewall problem.
 
Old 04-26-2005, 09:40 AM   #3
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
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”?
 
Old 04-29-2005, 02:10 PM   #4
boyd98
Member
 
Registered: Oct 2003
Posts: 156

Original Poster
Rep: Reputation: 15
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?


Thx again,

Boyd
 
Old 04-29-2005, 02:30 PM   #5
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
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.
 
Old 04-29-2005, 03:04 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
ddclient couldn’t care less what the box IP is.

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.

README...
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
/sbin/chkconfig --add ddclient
/etc/rc.d/init.d/ddclient start

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ddclient hirts123 Slackware 1 08-31-2005 04:29 AM
ddclient will not update boyd98 Linux - Networking 3 04-29-2005 02:31 PM
ddclient socks Linux - Software 5 10-17-2004 02:36 AM
ddclient doralsoral Linux - Software 3 04-19-2004 09:14 AM
I need help with 'ddclient' hecresper *BSD 3 05-06-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration