I have been trying to get ddclient to work on 7.2 but I can't. The Windows updater works fine but I do not want my Windows machine to always be on. I have followed the ddclient readme without success. What am I doing wrong? Is there some sort of compatibility problem?
In Dynamic DNS
Share this post:
Responses (20)
-
Accepted Answer
"won't work" doesn't tell us much :-(
What exactly did you install? an rpm using yum, a tar file? What version?
What errors? What's in the log files? etc
What dynamic dns provider? What's your configuration file for it?
How are you starting it?
It is also possible the readme hasn't been updated with instructions for a "systemd" distribution like CleaOS 7.x -
Accepted Answer
Thanks for the reply and sorry for the lack of detail.
ddclient comes in a tar file but you have to set it up manually.
ddclient -daemon=0 -noquiet -debug
DEBUG: proxy =
DEBUG: url = checkip.dyndns.com/
DEBUG: server = checkip.dyndns.com
DEBUG: get_ip: using web, checkip.dyndns.com/ reports <IPADDRESS>
DEBUG:
DEBUG: nic_dyndns2_update -------------------
DEBUG: proxy =
DEBUG: url = http://members.dyndns.org/nic/update?system=custom&hostname=<website1>,<website2>&myip=<IPaddress>
DEBUG: server = members.dyndns.org
FATAL: Error loading the Perl module IO::Socket::SSL needed for SSL connect.
FATAL: On Debian, the package libio-socket-ssl-perl must be installed.
FATAL: On Red Hat, the package perl-IO-Socket-SSL must be installed.
FATAL: On Alpine, the package perl-io-socket-ssl must be installed.
So I guess I need to install perl-IO-Socket-SSL. I am not sure how to do this. -
Accepted Answer
Why didn't you install the one from the clearos-epel repository?
That would have installed any required pre-requisites...
[root@sandra ~]# yum list ddclient --enablerepo=*
Loaded plugins: clearcenter-marketplace, fastestmirror
ClearCenter Marketplace: fetching repositories...
... snipped
ddclient.noarch 3.8.3-1.el7 @clearos-epel-unverified
[root@sandra ~]#
-
Accepted Answer
-
Accepted Answer
Great - In most cases you are better off looking for an rpm suited for your distribution than installing a tar file.
It is also much easier to remove an rpm. Use the yum list or search options with all the repos enabled in the command line for a first check to find what may be available. Then make a decision whether to install or not, for instance you might not want something in a "testing" or "test" repo etc. -
Accepted Answer
Can I also suggest another switch for the yum command, "--showduplicates". Otherwise "yum list --enablerepo=*" always shows the currently installed and latest installable packages only. The latest installable may be in one of the testing, development or unverified repos. This switch lists all packages. Having said that, it would not have helped in this case as the only package available is in clearos-epel-unverified.
FWIW, I only found the switch a few weeks ago. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Thanks for the reply.
Nick Howitt wrote:
I have looked at /etc/ddclient/dclient.conf and configured it properly according to dyn.com. I also followed the readme file that came with the version of ddclient that I downloaded from Sourceforge.
Come on, I'm sure you can do better than that! Have you looked at /etc/ddclient/dclient.conf? Does your DDNS provider provide a configuration if it is not already in the file? Does ClearOS get your WAN IP. If it does configure ddclient to use the interface. If it does not, use the web.
Does ClearOS get your WAN IP
Yes; I can use the Internet.
If it does configure ddclient to use the interface. If it does not, use the web
How do I do that?
Thanks. -
Accepted Answer
In the line which starts "use", for mine it is set to:
Change it to your WAN interface. Near the top of the file it a global parameter, but I think it can bu used on a per-configuration basis if you have MultiWAN. My file, with comments removed, looks like:use=if if=eth0
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.
ssl=yes # use ssl-support. Works with ssl-library
use=if if=eth0
##
## DNS-O-Matic account-configuration
##
server=updates.dnsomatic.com, \
protocol=dyndns2, \
login=****, \
password=***** \
all.dnsomatic.com
-
Accepted Answer
Thanks for the reply.
This is what my ddclient.conf file looks like:
With username, password, e-mail address and websites changed for privacy.## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=<my e-mail address> # 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=<username>
password=<password>
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
<websites>
## Dyn Standard DNS hosts
custom=yes, <websites>
ssl=yes
My ClearOS box connects to a modem in bridge mode and according to Network > Settings > IP Setting it is called ppp0 so should I change "use=web, web=checkip.dyndns.com/, web-skip='IP Address'" to "use=if if=ppp0"? Is there anything else I should change?
Thanks. -
Accepted Answer
Your configuration looks wrong to me. You've removed the line continuation character "\" from you DynDNS bit which, otherwise, could be on one line like:
Yours may work if they are all default settings. You'll just have to try it. DynDNS should have a sample configuration on their site.server=updates.dnsomatic.com, protocol=dyndns2, login=****, password=***** all.dnsomatic.com
And yes, I imagine you set your interface to ppp0, but I don't use PPPoE so I can't check. Try and you'll find out. Nothing will break.
If it all goes wrong, the worst that will happen is a temporary ban from checking/updating your IP. Once it works, as you are using your interface IP, you can reduce the daemon interval.
Ultimately you can also hook up to /etc/ppp/ip-up or /etc/ppp/ip-up.local to force an update as soon as your IP changes. -
Accepted Answer
I changed ddclient.conf to this:
With username, password, e-mail address and websites changed for privacy.## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=<my e-mail address> # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=if if=ppp0
## DynDNS username and password here
login=<username>
password=<password>
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
<websites>
## Dyn Standard DNS hosts
custom=yes, <websites>
ssl=yes
And it still doesn't work.
Any ideas? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
Start with googling "man ddclient". You'll find you need to add a -v switch to the start up. You can do this by adding -v to /etc/sysconfig/ddclient.
I don't know which log to look in but I'd start with /var/log/messages. There aren't many log files in /var/log so have a look at them all. A bit of self-help will go a long way. -
Accepted Answer
Success!
[root@server ~]# cat /var/log/messages | grep ddclient
Aug 23 14:39:43 server systemd: Starting SYSV: ddclient provides support for updating dynamic DNS services....
Aug 23 14:39:44 server ddclient: Starting ddclient: [ OK ]
Aug 23 14:39:44 server systemd: Started SYSV: ddclient provides support for updating dynamic DNS services..
Aug 23 14:39:44 server ddclient[2096]: FATAL: Error loading the Perl module IO::Socket::SSL needed for SSL connect.
Aug 23 14:39:44 server ddclient[2096]: FATAL: On Debian, the package libio-socket-ssl-perl must be installed.
Aug 23 14:39:44 server ddclient[2096]: FATAL: On Red Hat, the package perl-IO-Socket-SSL must be installed.
Aug 23 14:39:44 server ddclient[2096]: FATAL: On Alpine, the package perl-io-socket-ssl must be installed.
[root@server ~]# yum install perl-IO-Socket-SSL
Thanks for the help. -
Accepted Answer
EDIT: problem fixed. I ran
and realised that I should have putddclient -daemon=0 -noquiet -debug
instead ofuse=if if=ppp0
I am trying to set up ddclient on my backup server and I am having trouble. I tried installing by doinguse=ppp0
and I also tried doing it manually by following the instructions that come with ddclient but it won't work.yum install ddclient
/etc/ddclient.conf:
## ddclient configuration file
daemon=300
# check every 300 seconds
syslog=yes
# log update msgs to syslog
mail-failure=e-mail address hidden # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=ppp0
## DynDNS username and password here
login=username hidden
password=password hidden
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
URLs hidden
## Dyn Standard DNS hosts
custom=yes, URLs hidden
ssl=yes
/etc/ddclient/ddclient.conf:
## ddclient configuration file
daemon=300
# check every 300 seconds
syslog=yes
# log update msgs to syslog
mail-failure=e-mail address hidden # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=ppp0
## DynDNS username and password here
login=username hidden
password=password hidden
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
URLs hidden
## Dyn Standard DNS hosts
custom=yes, URLs hidden
ssl=yes
systemctl status ddclient.service
● ddclient.service - A Perl Client Used To Update Dynamic DNS
Loaded: loaded (/usr/lib/systemd/system/ddclient.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Any ideas?
Thanks. -
Accepted Answer
See Nick's append below - do as he suggests and let us know what is in the logs
Also with a bit of research you would have found https://sourceforge.net/p/ddclient/wiki/Home/#documentation
What happens when you follow this?
Why on earth do you have the config file in two locations?
This backup machine's external interface goes direct to your modem in bridge mode? (ppp0)
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »