LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2006, 04:09 PM   #1
harleys
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
ddclient configuration


I can't seem to get ddclient configured. There are so many different options, and none are very well explained. Also, in the router section, it does not have mine (d-link). If some of you could post some of your configuration files as examples, it would be great. I'm using dyndns and running slackware 10.2. Thanks, Harley
 
Old 02-21-2006, 04:26 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I've stripped the comments out of mine:
Code:
daemon=300
syslog=yes
mail=root
mail-failure=root
pid=/var/run/ddclient.pid
use=if,                     if=ppp0
login=someloginname
password=somepassword
 custom=yes,				\
 server=members.dyndns.org,		\
 protocol=dyndns2			\
 somedomainname.com
 
Old 05-18-2006, 03:55 PM   #3
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Rep: Reputation: 15
How would I know if this works? When I start the ddclient will it do an immediate update?
 
Old 05-18-2006, 04:35 PM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
So the "use=" part is the most important because it specifies where to get the IP from. Since you are behind a router, you need to either have ddclient get the IP address from the router using its status page, or get it from the web. There is built-in support for some D-Link routers (604 & 614+): "use=dlink-604, fw=<ip of router>:<port>" and "use=dlink-614, fw=<ip of router>:<port>" respectively.
 
Old 05-18-2006, 04:38 PM   #5
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Quote:
How would I know if this works? When I start the ddclient will it do an immediate update?
Try this

$ ddclient -daemon=0 -debug -verbose -noquiet

Last edited by dcdbutler; 05-18-2006 at 04:39 PM.
 
Old 05-23-2006, 01:24 PM   #6
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Rep: Reputation: 15
Quote:
Originally Posted by dcdbutler
Try this

$ ddclient -daemon=0 -debug -verbose -noquiet
This is my result:
[root@intenso131 init.d]# /usr/sbin/ddclient -daemon=0 -debug -verbose
-noquiet
=== opt ====
opt{cache} : <undefined>
opt{cmd} : <undefined>
opt{cmd-skip} : <undefined>
opt{daemon} : 0
opt{debug} : 1
opt{exec} : <undefined>
opt{facility} : <undefined>
opt{file} : <undefined>
opt{force} : <undefined>
opt{fw} : <undefined>
opt{fw-login} : <undefined>
opt{fw-password} : <undefined>
opt{fw-skip} : <undefined>
opt{geturl} : <undefined>
opt{help} : <undefined>
opt{host} : <undefined>
opt{if} : <undefined>
opt{if-skip} : <undefined>
opt{ip} : <undefined>
opt{login} : <undefined>
opt{mail} : <undefined>
opt{mail-failure} : <undefined>
opt{max-interval} : 1296000
opt{min-error-interval} : 300
opt{min-interval} : 30
opt{options} : <undefined>
opt{password} : <undefined>
opt{pid} : <undefined>
opt{priority} : <undefined>
opt{protocol} : <undefined>
opt{proxy} : <undefined>
opt{query} : <undefined>
opt{quiet} : 0
opt{retry} : <undefined>
opt{server} : <undefined>
opt{syslog} : <undefined>
opt{test} : <undefined>
opt{timeout} : <undefined>
opt{use} : <undefined>
opt{verbose} : 1
opt{web} : <undefined>
opt{web-skip} : <undefined>
=== globals ====
globals{daemon} : 60
globals{debug} : 1
globals{login} : tuntsfaah
globals{mail} : root
globals{mail-failure} : root
globals{password} : amandamidevil
globals{pid} : /var/run/ddclient.pid
globals{protocol} : dyndns2
globals{quiet} : 0
globals{server} : members.dyndns.org
globals{syslog} : 1
globals{use} : web
globals{verbose} : 1
globals{web} : checkip.dyndns.org/
globals{web-skip} : IP Address
globals{wildcard} : 1
=== config ====
config{intenso131.mine.nu}{atime} : 1147994941
config{intenso131.mine.nu}{backupmx} : 0
config{intenso131.mine.nu}{cacheable} : ARRAY(0x92e2b40)
config{intenso131.mine.nu}{custom} : 0
config{intenso131.mine.nu}{host} : intenso131.mine.nu
config{intenso131.mine.nu}{ip} : 67.149.44.46
config{intenso131.mine.nu}{login} : tuntsfaah
config{intenso131.mine.nu}{max-interval} : 1296000
config{intenso131.mine.nu}{min-error-interval} : 300
config{intenso131.mine.nu}{min-interval} : 30
config{intenso131.mine.nu}{mtime} : 1147994941
config{intenso131.mine.nu}{mx} :
config{intenso131.mine.nu}{password} : amandamidevil
config{intenso131.mine.nu}{protocol} : dyndns2
config{intenso131.mine.nu}{server} : members.dyndns.org
config{intenso131.mine.nu}{static} : 0
config{intenso131.mine.nu}{status} : good
config{intenso131.mine.nu}{warned-min-error-interval} : 0
config{intenso131.mine.nu}{warned-min-interval} : 0
config{intenso131.mine.nu}{wildcard} : 1
config{intenso131.mine.nu}{wtime} : 0
=== cache ====
cache{intenso131.mine.nu}{atime} : 1147994941
cache{intenso131.mine.nu}{backupmx} : 0
cache{intenso131.mine.nu}{custom} : 0
cache{intenso131.mine.nu}{host} : intenso131.mine.nu
cache{intenso131.mine.nu}{ip} : 67.149.44.46
cache{intenso131.mine.nu}{mtime} : 1147994941
cache{intenso131.mine.nu}{mx} :
cache{intenso131.mine.nu}{static} : 0
cache{intenso131.mine.nu}{status} : good
cache{intenso131.mine.nu}{warned-min-error-interval} : 0
cache{intenso131.mine.nu}{warned-min-interval} : 0
cache{intenso131.mine.nu}{wildcard} : 1
cache{intenso131.mine.nu}{wtime} : 0
CONNECT: checkip.dyndns.org
CONNECTED:
SENDING: GET / HTTP/1.0
SENDING: Host: checkip.dyndns.org
SENDING: User-Agent: ddclient/3.6.6
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Content-Type: text/html
RECEIVE: Server: DynDNS-CheckIP/0.1
RECEIVE: Connection: close
RECEIVE: Cache-Control: no-cache
RECEIVE: Pragma: no-cache
RECEIVE: Content-Length: 104
RECEIVE:
RECEIVE: <html><head><title>Current IP Check</title></head><body>Current
IP Address: 67.149.44.46</body></html>
DEBUG: get_ip: using web, checkip.dyndns.org/ reports 67.149.44.46
SUCCESS: intenso131.mine.nu: skipped: IP address was already set to
67.149.44.46.
Can't exec "sendmail": No such file or directory at /usr/sbin/ddclient
line 1210.
ddclient: cannot execute command | sendmail -oi root.
[root@intenso131 init.d]#


So where did I go wrong?


This is my ddclient.conf:
######################################################################
##
## Define default global variables with lines like:
## var=value [, var=value]*
## These values will be used for each following host unless overridden
## with a local variable definition.
##
## Define local variables for one or more hosts with:
## var=value [, var=value]* host.and.domain[,host2.and.domain...]
##
## Lines can be continued on the following line by ending the line
## with a \
##
######################################################################
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
mail=root # mail all msgs to root
mail-failure=root # mail failed update msgs to root
pid=/var/run/ddclient.pid # record PID in file.

#use=dlink-524, fw=192.168.0.1:80 # via Netgear's internet FW
#fw-login=admin fw-password=amandamidevil # FW login and password
#use=fw, fw=192.168.0.1/Status/st_devic.php, fw-skip='Connection'

use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP
Address

#use=web # via web

protocol=dyndns2 # default protocol
#proxy=fasthttp.sympatico.ca:80 # default proxy
server=members.dyndns.org # default server
#server=members.dyndns.org:8245 # default server (bypassing proxies)

login=my_login # default login
password=my_password # default password
#mx=mx.for.your.host # default MX
#backupmx=no # host is primary MX?
wildcard=yes # add wildcard CNAME?

server=members.dyndns.org, \
protocol=dyndns2 \
intenso131.mine.nu
 
Old 04-09-2009, 08:49 AM   #7
digitalvectorz
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Exclamation security...

tuntsfaah,

in the last post on this, may I suggest commenting out/devaluing any entries of the output of the ddclient daemon output with the values {login} and {password} in this post.

Please, for security sake, be mindful of personal information/output information being posted. :-) Good luck.

Last edited by digitalvectorz; 04-09-2009 at 08:50 AM.
 
  


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 problems mblanco2000 Linux - General 1 12-23-2004 10:38 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 - Software

All times are GMT -5. The time now is 09:50 AM.

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
Open Source Consulting | Domain Registration