I am running ddclient 3.8.3 from EPEL repository on Centos 7.
THE PROBLEM: Ddclient seens that get the IP address properly but this is not updated in Namecheap Server. There is no warning or error messages in Logs.
As a reference, consider the domains facilitasegtec.com.br and donachicatapiocaria.com.br.
Look to the following configurations and logs:
1 - Namecheap
Domain: donachicatapiocaria.com.br
Record: A
Host: @
IP: It does not updated
Domain: facilitasegtec.com.br
Record: A
Host: @
IP: It does not updated
ddclient.service - A Perl Client Used To Update Dynamic DNS
Loaded: loaded (/usr/lib/systemd/system/ddclient.service; disabled; vendor preset: disabled)
Active: active (running) since Qua 2017-08-23 18:22:43 BRT; 14min ago
Process: 26352 ExecStart=/usr/sbin/ddclient $DDCLIENT_OPTIONS (code=exited, status=0/SUCCESS)
Process: 26347 ExecStartPre=/bin/touch /var/cache/ddclient/ddclient.cache (code=exited, status=0/SUCCESS)
Main PID: 26354 (ddclient - slee)
CGroup: /system.slice/ddclient.service
└─26354 ddclient - sleeping for 50 seconds
Ago 23 18:22:43 new-host systemd[1]: Starting A Perl Client Used To Update Dynamic DNS...
Ago 23 18:22:43 new-host systemd[1]: Started A Perl Client Used To Update Dynamic DNS.
4 - ddclient -daemon=0 -noquiet -debug
DEBUG: proxy =
DEBUG: url = dynamicdns.park-your-domain.com/getip
DEBUG: server = dynamicdns.park-your-domain.com
DEBUG: get_ip: using web, dynamicdns.park-your-domain.com/getip reports 177.19.47.130
5 - ddclient -daemon=0 -noquiet -debug -verbose
....
DEBUG: proxy =
DEBUG: url = dynamicdns.park-your-domain.com/getip
DEBUG: server = dynamicdns.park-your-domain.com
CONNECT: dynamicdns.park-your-domain.com
CONNECTED: using HTTP
SENDING: GET /getip HTTP/1.0
SENDING: Host: dynamicdns.park-your-domain.com
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Cache-Control: private
RECEIVE: Content-Type: text/html
RECEIVE: Set-Cookie: ASPSESSIONIDSADQSRAT=ELOPFIMCNFEOFINFGBGOMKHD; path=/
RECEIVE: Date: Wed, 23 Aug 2017 21:38:03 GMT
RECEIVE: Connection: close
RECEIVE: Content-Length: 13
RECEIVE:
RECEIVE: 177.19.47.130
DEBUG: get_ip: using web, dynamicdns.park-your-domain.com/getip reports 177.19.47.130
SUCCESS: @.donachicatapiocaria.com.br: skipped: IP address was already set to 177.19.47.130.
SUCCESS: @.facilitasegtec.com.br: skipped: IP address was already set to 177.19.47.130.
6 - vi /var/cache/ddclient/ddclient.cache
ddclient-3.8.3
last updated at Wed Aug 23 18:22:43 2017 (1503523363)
atime=0,host=@,ip=177.19.47.130,mtime=1503517607,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @
atime=0,host=@.donachicatapiocaria.com.br,ip=177.19.47.130,mtime=1503437300,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @.donachicatapiocaria.com.br
atime=0,host=@.facilitasegtec.com.br,ip=177.19.47.130,mtime=1503437300,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @.facilitasegtec.com.br
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should try again with your cache file removed and post the complete output of ddclient -daemon=0 -noquiet -debug -verbose to pastebin and leave a link here.
Are you sure you use '@' in the configuration of namecheap? I've never used their service but it looks like ddclient tries to update the host called @.donachicatapiocaria.com.br while it should be '@.donachicatapiocaria.com.br'. I understand this confusing because the bind configuration will use @ as reference to donachicatapiocaria.com.br but your configuration should contain donachicatapiocaria.com.br as hostname.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know this is an old thread but I have tried the debug from @wimpunk and it works flawlessly. It updates the namecheap DNS entries with the correct IP addresses.
I have the folder /var/run/ddclient and it is owned by ddclient.ddclient with 744 permissions.
The folder contains 0 files but the application is not running.
Further, I have removed the DDCLIENT_OPTIONS="-deamon 300" from the /etc/sysconfig/ddclient.
Yet I continue to have the failure to start the ddclient as a service.
Hi,
I am running ddclient 3.8.3 from EPEL repository on Centos 7.
THE PROBLEM: Ddclient seens that get the IP address properly but this is not updated in Namecheap Server. There is no warning or error messages in Logs.
As a reference, consider the domains facilitasegtec.com.br and donachicatapiocaria.com.br.
Look to the following configurations and logs:
1 - Namecheap
Domain: donachicatapiocaria.com.br
Record: A
Host: @
IP: It does not updated
Domain: facilitasegtec.com.br
Record: A
Host: @
IP: It does not updated
2 - vi /etc/ddclient.conf
use=web,
web=dynamicdns.park-your-domain.com/getip \ protocol=namecheap, \ server=dynamicdns.park-your-domain.com \ login=facilitasegtec.com.br, \ password=9bb79cdb45bb40ee997c3661b3096826 \ @.facilitasegtec.com.br
use=web,
web=dynamicdns.park-your-domain.com/getip \ protocol=namecheap, \ server=dynamicdns.park-your-domain.com \ login=donachicatapiocaria.com.br, \ password=faa57d987b744723b58c96662dd02fbd \ @.donachicatapiocaria.com.br
43- 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: active (running) since Qua 2017-08-23 18:22:43 BRT; 14min ago
Process: 26352 ExecStart=/usr/sbin/ddclient $DDCLIENT_OPTIONS (code=exited, status=0/SUCCESS)
Process: 26347 ExecStartPre=/bin/touch /var/cache/ddclient/ddclient.cache (code=exited, status=0/SUCCESS)
Main PID: 26354 (ddclient - slee)
CGroup: /system.slice/ddclient.service
└─26354 ddclient - sleeping for 50 seconds
Ago 23 18:22:43 new-host systemd[1]: Starting A Perl Client Used To Update Dynamic DNS...
Ago 23 18:22:43 new-host systemd[1]: Started A Perl Client Used To Update Dynamic DNS.
4 - ddclient -daemon=0 -noquiet -debug
DEBUG: proxy =
DEBUG: url = dynamicdns.park-your-domain.com/getip
DEBUG: server = dynamicdns.park-your-domain.com
DEBUG: get_ip: using web, dynamicdns.park-your-domain.com/getip reports 177.19.47.130
5 - ddclient -daemon=0 -noquiet -debug -verbose
....
DEBUG: proxy =
DEBUG: url = dynamicdns.park-your-domain.com/getip
DEBUG: server = dynamicdns.park-your-domain.com
CONNECT: dynamicdns.park-your-domain.com
CONNECTED: using HTTP
SENDING: GET /getip HTTP/1.0
SENDING: Host: dynamicdns.park-your-domain.com
SENDING: User-Agent: ddclient/3.8.3
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Cache-Control: private
RECEIVE: Content-Type: text/html
RECEIVE: Set-Cookie: ASPSESSIONIDSADQSRAT=ELOPFIMCNFEOFINFGBGOMKHD; path=/
RECEIVE: Date: Wed, 23 Aug 2017 21:38:03 GMT
RECEIVE: Connection: close
RECEIVE: Content-Length: 13
RECEIVE:
RECEIVE: 177.19.47.130
DEBUG: get_ip: using web, dynamicdns.park-your-domain.com/getip reports 177.19.47.130
SUCCESS: @.donachicatapiocaria.com.br: skipped: IP address was already set to 177.19.47.130.
SUCCESS: @.facilitasegtec.com.br: skipped: IP address was already set to 177.19.47.130.
6 - vi /var/cache/ddclient/ddclient.cache
ddclient-3.8.3
last updated at Wed Aug 23 18:22:43 2017 (1503523363)
atime=0,host=@,ip=177.19.47.130,mtime=1503517607,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @
atime=0,host=@.donachicatapiocaria.com.br,ip=177.19.47.130,mtime=1503437300,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @.donachicatapiocaria.com.br
atime=0,host=@.facilitasegtec.com.br,ip=177.19.47.130,mtime=1503437300,status=good,warned-min-error-interval=0,warned-min-interval=0,wtime=30 @.facilitasegtec.com.br
You should try again with your cache file removed and post the complete output of
ddclient -daemon=0 -noquiet -debug -verbose
to pastebin and leave a link here.Are you sure you use '@' in the configuration of namecheap? I've never used their service but it looks like ddclient tries to update the host called @.donachicatapiocaria.com.br while it should be '@.donachicatapiocaria.com.br'. I understand this confusing because the bind configuration will use @ as reference to donachicatapiocaria.com.br but your configuration should contain donachicatapiocaria.com.br as hostname.
I know this is an old thread but I have tried the debug from @wimpunk and it works flawlessly. It updates the namecheap DNS entries with the correct IP addresses.
I have the folder /var/run/ddclient and it is owned by ddclient.ddclient with 744 permissions.
The folder contains 0 files but the application is not running.
Further, I have removed the DDCLIENT_OPTIONS="-deamon 300" from the /etc/sysconfig/ddclient.
Yet I continue to have the failure to start the ddclient as a service.
Any other suggestions?
Check the latest development version on github. There's a fix for systemd in that version.
Thanks!
I ran into the same issue. I've fixed by updating these two files
- chown -R chown:chown /var/cache/ddclient
- chown -R chown:chown /var/run/ddclient