Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I own domains at two different domain registrars, hence I have two separate providers I'd like to update the IP address of my webserver to.
I've been trying to write a ddclient.conf file for this purpose but I am not able to get it to work properly. How can I edit it to make it work?
(Domain names and providers are censored.)
Code:
# ddclient.conf
daemon=600 # check every 10 min
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
# Where to get the server IP address?
use=web, web=dns.xxx.se/checkip.php, web-skip='Current IP Address:'
# The login details for XXX
protocol=dyndns2
server=dns.xxx.se/XDynDNSServer/XDynDNS.php
login=andy
password=***
# Domains @ XXX
domain.com,www.domain.com,example.com,www.example.com
# The login details for YYY
protocol=dyndns2
server=dyndns.yyy.se
login=boris
password=***
# Domains @ YYY
anotherdomain.com,www.anotherdomain.com
I've never used ddclient before, but you may need to write two different config files. Assumedly, ddclient has some way you can specify a non-default config file when it is run. You would need to start instances of ddclient for both config files. You might also need to change default paths to the PID files so both can run simultaneously.
I don't see anything obviously wrong with your config file. I update two different registrars with ddclient.
Well, something in the config i posted must be broken. The domains at the first section (to the 1st registrar) is all updated correctly, but the domains to the second registrar doesnt update properly, except for that it creates 4 subdomain posts in the first domain name instead of 2 (@ and www). It creates an "@", "ce", "www", "www.ce", where "ce" is the first two letters of the second domain (theres actually 2 domains in the second registrar, and not only 1 as in my example).. in other words it looks like this:
Manually removing the old records through the registrars websites DNS-handler to make sure to get a fresh start. And then running a sudo ddclient -force
But it still gives the exact same result.. Writing 4 records in one of the domains and the second it doesn't write anything at all to.
What can be wrong..? I'm losing my hair over this!
Are you trying to get ddclient to update identical hostnames for different domain names? So far as I know, ddclient can't handle duplicate hostnames. For example, it won't update hostname www at both foo.com and bar.com. Or if it can, I haven't figured out how to do it.
Are you trying to get ddclient to update identical hostnames for different domain names? So far as I know, ddclient can't handle duplicate hostnames. For example, it won't update hostname www at both foo.com and bar.com. Or if it can, I haven't figured out how to do it.
Unless I'm misunderstanding your question then Yes.
If you comment out Provider A and leave only Provider B in the ddclient config, do the DNS records get updated properly at Provider B? Or are they still corrupted?
If you comment out Provider A and leave only Provider B in the ddclient config, do the DNS records get updated properly at Provider B? Or are they still corrupted?
Already tried at Post #5 in this thread. Still the exact same result. I initially believed the problem was related to having two providers in the same configuration file but that seems to not be the case. The exact same corruption occurs when trying to update only Provider B using Provider B's own configuration file template.
However, it seems to work if I only update one of the domains (for example: foo.com, www.foo.com) or (bar.com, www.bar.com).
Updating multiple domain names at the same provider works with Provider A, so I don't see why it wouldn't work with Provider B. I run virtualhosts on the server and would like to associate different domains with different sites on the same physical server, just like I am successfully doing with Provider A.
I also tried creating two separate blocks, making what I assume to be two requests to the same provider using only one domain name per request. Like this:
Code:
# The login details for YYY
protocol=dyndns2
server=dyndns.yyy.se
login=boris
password=abc123
# First domain at YYY
foo.com,www.foo.com
# The login details for YYY (again)
protocol=dyndns2
server=dyndns.yyy.se
login=boris
password=abc123
# Second domain at YYY
bar.com,www.bar.com
However this produced the exact same corruption, again.
Perhaps it is a problem with the DNS provider. You might try contacting them. Also, I see ddclient 3.8.2 was just released. What version are you running?
Perhaps it is a problem with the DNS provider. You might try contacting them. Also, I see ddclient 3.8.2 was just released. What version are you running?
I was first using ddclient 3.8.0 (from 2009) which is the latest version provided through apt-get in ubuntu. However I downloaded ddclient from it's official website to get the latest version 3.8.2 and installed that instead to resolve a problem with the same Provider B sending malformed responses (not including IP, so ddclient complained about Invalid value for keyword IP) hoping that this would also solve the corruption problem with the DNS-records. It didn't. But atleast now, the cachefile is written properly. (ddclient 3.8.2 sets the IP value by itself in case it's not sent by the provider.)
And I've also tried deleting the cachefile for ddclient before every new attempt of updating (after doing some change) just to be clear about that.
Been doing practically nothing at all other than trying to solve this problem with updates to Provider B the last couple of days. Heh.
I have run out of ideas. Have you tried running non-daemon mode with debug and verbose?
Code:
# ddclient -daemon=0 -debug -verbose -noquiet
Also, this gives more help info:
Code:
# ddclient -help
I tried it now, and couldn't find anything extraordinary in the output. I e-mailed the service provider.
Unless someone has any more suggestions of what might be causing the trouble I'll wait and see what the service provider will respond to my e-mail. The provider in question has a good reputation and they are one of the larger domain providers and hosting company today in my country, it's considered one of the better ones. Hopefully they will be willing to and able to help, since the problem might be on their side.
I'd still like more suggestions on what I can try if someone see's anything not mentioned in this thread that could be causing problems like this.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.