Setting up ddlcient Setting up ddlcient

Topic: Setting up ddlcient

Post Setting up ddlcient
by jsikarin on Monday, April 17, 2017

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)

Reply with quote | Report
Post Re: Setting up ddlcient
by timothytw on Wednesday, April 19, 2017

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/

Reply with quote | Report
Post Re: Setting up ddlcient
by carlosanchez on Sunday, July 9, 2017

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


Reply with quote | Report
Post Re: Re: Setting up ddlcient
by timothytw on Monday, July 10, 2017

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.

Reply with quote | Report
Friday, November 15, 2024 5:38 PM
Loading...