You are not logged in.
Pages: 1
Hi,
I currently have trouble with configuring ddclient. I have edited the /etc/conf.d/ddclient to the following
## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=xxxx # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
## DynDNS username and password here
login=xxxx
password=xxxx
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
xxxx.dyndns.org
When i try to start the daemon i get the following output
>sudo /etc/rc.d/ddclient start
/etc/conf.d/ddclient: line 6: mail-failure=xxxx: command not found
/etc/conf.d/ddclient: line 10: web-skip=IP Address: command not found
/etc/conf.d/ddclient: line 18: xxxx.dyndns.org: command not found
:: Starting ddclient [FAIL]
Anyone know how to configure ddclient with dyndns?
Last edited by munkoil (2010-09-26 12:50:51)
Offline
Indeed, you are not editing the right file. You must edit /etc/ddclient/ddclient.conf and not /etc/conf.d/ddclient (well, you can edit it too, but this is where you add extra args to be passed to the daemon when you start it via the script in /etc/rc.d).
For example, these are my files:
/etc/conf.d/ddclient
# Parameters passed to ddclient
#EXTRA_ARGS="-debug -verbose"
EXTRA_ARGS=""
/etc/ddclient/ddclient.conf
## ddclient configuration file
daemon=1500 # check every 25 minutes
syslog=yes # log update msgs to syslog
mail-failure=root # Mail failed updates to user
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl support
cache=/var/cache/ddclient/ddclient.cache # cache file
#use=web, web=checkip.dyndns.com/, web-skip='IP Address'
use=cmd, cmd=/usr/local/bin/pubip
## DynDNS username and password here
login=my_login
password=my_password
## Default options
protocol=dyndns2
server=members.dyndns.org
wildcard=no
## Dynamic DNS hosts
my-host-name.dyndns.org
Your 'use' line will be different since I myself wrote a 2 line script to extract the IP address on the web page of my router.
Offline
Thank you! This solved my problem. I was misled by the message I got when installing the package. It said that if i wanted ddclient to be run as a daemon i should edit /etc/conf.d/ddclient
Offline
It said...
No, this is what it says.
Offline
Pages: 1