Jump to content
linuxserver.io

[Support] Linuxserver.io - ddclient

12 posts in this topic Last Reply

Recommended Posts

linuxserver_medium.thumb.png.e071d2c60a445981af5678612664608b.png

 

Application Name: ddclient
Application Site: https://github.com/ddclient/ddclient
Docker Hub: https://hub.docker.com/r/linuxserver/ddclient/
Github: https://github.com/linuxserver/docker-ddclient

 

Please post any questions/issues relating to this docker you have in this thread.

If you are not using Unraid (and you should be!) then please do not post here, rather use the linuxserver.io forum for support.

Share this post


Link to post
Posted (edited)

I keep getting this warning no matter how I set my ddclient.conf:

Setting up watches.
Watches established.
/config/ddclient.conf MODIFY
ddclient has been restarted
Setting up watches.
Watches established.
WARNING: found neither ipv4 nor ipv6 address

I'm using Namecheap. I've tried configuring the following ways by uncommenting the Namecheap section (I made no other changes to the default ddclient.conf):

##
## NameCheap (namecheap.com)
##
protocol=namecheap                               
server=dynamicdns.park-your-domain.com   
login=**********.***                         
password=**********                
@
##
## NameCheap (namecheap.com)
##
protocol=namecheap,                             \
server=dynamicdns.park-your-domain.com, \
login=**********.***,                       \
password=**********               \
@

I made no changes to the default linuxserver/ddclient Docker template.

 

I read this article for reference on how to configure ddclient for Namecheap: https://www.namecheap.com/support/knowledgebase/article.aspx/583/11/how-do-i-configure-ddclient

Edited by ZooMass
Add article reference

Share this post


Link to post

@ZooMass

use=web, web=dynamicdns.park-your-domain.com/getip
protocol=namecheap
server=dynamicdns.park-your-domain.com
login=yourdomain.com
password=your dynamic dns password
@,www

 

Share this post


Link to post
Posted (edited)
20 hours ago, CHBMB said:

@ZooMass


use=web, web=dynamicdns.park-your-domain.com/getip
protocol=namecheap
server=dynamicdns.park-your-domain.com
login=yourdomain.com
password=your dynamic dns password
@,www

 

Hey, that worked, thank so much! Silly of me not to try the line from the article itself.

Edited by ZooMass

Share this post


Link to post
Posted (edited)

Thank you for this. But do you have a configuration file that works with Cloudflare? I must have tried a couple dozen different configs, and I can't get it to work. I keep getting one of two errors:

WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
WARNING: found neither ipv4 nor ipv6 address

Here's the Cloudflare section of my current config:

protocol=cloudflare,                                    \
server=www.cloudflare.com,                              \
login=XXXXXXXX@XXXXXX.com                               \
password=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                \
zone=XXXXXX.com,                                        \
YYYYYYYY.XXXXXX.com

Edit: I'll add in that if I add a line to detect my IP from a web page (ie. use=web, web=dynamicdns.park-your-domain.com/getip), I get the following series of errors:

WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
WARNING: skipping update of YYYYYYYY.XXXXXX.com from <nothing> to WWW.XXX.YYY.ZZZ.
WARNING: last updated <never> but last attempt on Thu Jun 13 12:26:25 2019 failed.
WARNING: Wait at least 5 minutes between update attempts.

With the WWW.XXX.YYY.ZZZ being my actual IP address. That would imply that ddclient it actually getting my IP address. But for whatever reason, it's just not parsing it correctly to send it to Cloudflare.

Edited by Caldorian
More info

Share this post


Link to post

You can either exec into the container amd delete the cache file or change something in the template and hit apply and it will delete the existing container and create a new without the old cache file.

Share this post


Link to post

Thanks @saarg.

While it didn't directly resolve my issue, it was enough to get me started.

 

Been trying to get this to work for a while now, and been using a few different templates for it. First there was mace's, and then tried adding lsio's direct from docker hub. I'm guessing I was getting some package corruption between various elements. I had tried removing each of the dockers, including the option to remove the image, but I guess it was still leaving remnants. In particular, I noticed today after removing the image, if I used the "Add Container" option, I could still pick from all the old templates I had tried.

 

So a quick Google search on how to get rid of those (CA --> Previous Apps --> "X"), and installed the docker fresh (yet again). Updated the config file, and success. Even have it working with 2 copies of the container going (2 domains, one still on Namecheap, the other with Cloudflare).

 

For those curious, here's the final Cloudflare config I ended up with:

use=web, web=dynamicdns.park-your-domain.com/getip
protocol=cloudflare,        \
zone=mydomain.com,            \
ttl=1,                      \
login=user@email.com,     \
password=ThisIsWhereYourGlobalAPIKeyGoes             \
subdomain1.mydomain.com,subdomain2.mydomain.com

One question: I'm sure when I had mace's docker going against Namecheap, it would ping in the console log every 5 minutes, stating that the IP was updated. Has this version been updated such that it'll only post to the console if/when the IP changes and it sends a command out to update the DNS entry? If so, is there some change I can make so that it at least logs that the current IP was checked?

Share this post


Link to post
3 hours ago, Caldorian said:

Thanks @saarg.

While it didn't directly resolve my issue, it was enough to get me started.

 

Been trying to get this to work for a while now, and been using a few different templates for it. First there was mace's, and then tried adding lsio's direct from docker hub. I'm guessing I was getting some package corruption between various elements. I had tried removing each of the dockers, including the option to remove the image, but I guess it was still leaving remnants. In particular, I noticed today after removing the image, if I used the "Add Container" option, I could still pick from all the old templates I had tried.

 

So a quick Google search on how to get rid of those (CA --> Previous Apps --> "X"), and installed the docker fresh (yet again). Updated the config file, and success. Even have it working with 2 copies of the container going (2 domains, one still on Namecheap, the other with Cloudflare).

 

For those curious, here's the final Cloudflare config I ended up with:


use=web, web=dynamicdns.park-your-domain.com/getip
protocol=cloudflare,        \
zone=mydomain.com,            \
ttl=1,                      \
login=user@email.com,     \
password=ThisIsWhereYourGlobalAPIKeyGoes             \
subdomain1.mydomain.com,subdomain2.mydomain.com

One question: I'm sure when I had mace's docker going against Namecheap, it would ping in the console log every 5 minutes, stating that the IP was updated. Has this version been updated such that it'll only post to the console if/when the IP changes and it sends a command out to update the DNS entry? If so, is there some change I can make so that it at least logs that the current IP was checked?

 

I don't remember what it logs anymore as I haven't used it for ages, but I assume it will log when checking the IP.

Share this post


Link to post
14 minutes ago, saarg said:

 

I don't remember what it logs anymore as I haven't used it for ages, but I assume it will log when checking the IP.

I've had it running for the last 5 hours now, and I haven't new log entries since the last time the dockers were restarted.

Share this post


Link to post
8 hours ago, Caldorian said:

I've had it running for the last 5 hours now, and I haven't new log entries since the last time the dockers were restarted.

 

Try changing the IP manually on namecheap to the wrong one and see if it gets updated after about 300 seconds.

Share this post


Link to post

Changing the in Namecheap had no affect, no updates were issued. If I deleted the cache file in docker, and let it continue to run, then I'd see in the console (within 5 minutes) that the IP address was updated, and my DNS gets updated properly. Seems like it does check against the cache file, and if it matches, doesn't do anything. Which is kind of good, as I don't want to issue erroneous updates if there's nothing to change. But it would be nice if it would say that I did check and no changes were required.

Seems like it's a known "feature" of ddclient, and various people have come up with all sorts of work arounds to deal with dynamic dns providers that require updates every X days:

https://www.linuxquestions.org/questions/debian-26/ddclient-will-not-update-316726/#post1611217

 

Share this post


Link to post

Folks,

 

I'm having difficulty to configure a very simple dyndns.org. There are too many options at the config. file. Could you show me where should I put my login/password and domain, please?

Thanks in advance!

Eduardo

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.