Community Forum - Create Topic  Community Forum - Create Topic

Author Topic: Setting up ddlcient

Joseph Sikarin

Joined: 4/16/2017

Post Setting up ddlcient
Monday, April 17, 2017 2:00:29 PM

So I have been fiddling with ddclient for the past couple of days trying to get it to work to no success. My goal is for my server to automatically update the ip of mysubdomain.dynu.org resolves to if the external ip address of my server changes due to my ISP giving my router a new address for whatever reason. Here are the errors I am currently recieving...

Apr 17 15:05:50 raspberrypi ddclient[701]: WARNING: cannot connect to checkip.dynu.com:80 socket: IO::Socket::INET: Bad hostname 'checkip.dynu.com'
Apr 17 15:20:50 raspberrypi ddclient[701]: FAILED: updating mysubdomain.dynu.org: badauth: Bad authorization (username or password)
Apr 17 15:35:50 raspberrypi ddclient[701]: WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
Apr 17 15:35:51 raspberrypi ddclient[701]: FAILED: updating mysubdomain.dynu.org: badauth: Bad authorization (username or password)

The actual hostname of my subdomain has been changed for security reasons. What can I do about not being able to connect to checkip.dynu.com over port 80?

This forum really needs a search function.

Here is my config file, I am currently trying to connect to mysubdomain using the username and password that I use to logon to this site. Is that the username and password that I should use to connect to the DNS server from my server?

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf

daemon=30
protocol=dyndns2
use=web, web=checkip.dynu.com/ web-skip='IP Adress'
server=api.dynu.com
login=
password=''
mysubdomain.dynu.org

(I edited out the username and password)

Timothy Wilkinson

Joined: 5/3/2002

Post Re: Setting up ddlcient
Wednesday, April 19, 2017 10:17:13 AM

You can try the following workaround:

Instead of using ddclient's built-in web client to connect to checkip.dynu.com, call a shell script that uses curl to make the network call. You may replace this line in the /etc/ddclient.conf configuration file:

use=web, web=checkip.dynu.com/ web-skip='IP Adress'

with the following to use a checkip.sh shell script stored in the location /user/bin/checkip.sh:

use=cmd, cmd=/user/bin/checkip.sh, cmd-skip='IP Address' # found after IP Address

The script could be something like this:

#Your note
curl http://checkip.dynu.com/

Carlos Snchez

Joined: 6/23/2017

Post Re: Setting up ddlcient
Sunday, July 9, 2017 12:13:36 PM

I have a similar problem. I am just setting the internal IP address to access through dynu domain name. I have a problem with the server in ddclient "api.dynu.com" appears to be wrong.

ddclient config file is the following:

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
daemon=60
syslog=yes
pid=/var/run/ddclient.pid
use=if, if=eth0
ssl=yes
server=api.dynu.com
protocol=dyndns2
login=carlosanchez
password='pass'
name.dynu.net

the error triggered by the verbose option in ddclient is the next:

WARNING: cannot connect to api.dynu.com:443 socket: Name or service not known IO::Socket::IP configuration failed
FAILED: updating name.dynu.net: Could not connect to api.dynu.com.

Do you know which could be the issue?

Thank you

Timothy Wilkinson

Joined: 5/3/2002

Post Re: Re: Setting up ddlcient
Monday, July 10, 2017 8:45:25 AM

carlosanchez wrote:I have a similar problem. I am just setting the internal IP address to access through dynu domain name. I have a problem with the server in ddclient "api.dynu.com" appears to be wrong.

ddclient config file is the following:

# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
daemon=60
syslog=yes
pid=/var/run/ddclient.pid
use=if, if=eth0
ssl=yes
server=api.dynu.com
protocol=dyndns2
login=carlosanchez
password='pass'
name.dynu.net

the error triggered by the verbose option in ddclient is the next:

WARNING: cannot connect to api.dynu.com:443 socket: Name or service not known IO::Socket::IP configuration failed
FAILED: updating name.dynu.net: Could not connect to api.dynu.com.

Do you know which could be the issue?

Thank you



Your config file is not correct. You need to replace use=if, if=eth0 with the following:

use=web, web=checkip.dynu.com/, web-skip='IP Address'

For more information, you can refer to the config at https://www.dynu.com/DynamicDNS/IPUpdateClient/DDClient.


It is currently Tuesday, August 22, 2017 9:24 PM Mountain Standard Time