Description
ddclient is a dynamic DNS client that keeps a domain name pointing at your current IP address. It is for connections whose IP address changes often, such as a home network, and it updates DNS entries for accounts at a wide range of dynamic DNS services. It works in two steps. A router finds your public address, for example through ipify or one of more than 20 other web services, and a protocol then updates the record at your provider, such as DuckDNS, Cloudflare or one of more than 30 others. Configuration lives in a ddclient.conf file, which defaults to /etc/ddclient/ddclient.conf, or in command-line arguments. A typical file sets a daemon interval, a router and a protocol with login and password. Since version 3.11.0_1, you can read the login and password from environment variables, which keeps secrets out of the file. ddclient can run as a daemon or from systemd, cron, dhclient and other tools, and the GitHub repository has sample startup scripts. The FAQ notes that ddclient keeps its own cache to detect IP changes, instead of checking DNS. The project is open source on GitHub.…
Highlights
- Updates dynamic DNS for many providers
- Finds your IP through web services
- Config file or command-line arguments
- Logins from environment variables
- Runs as a daemon or from systemd and cron
Ratings & Reviews
No ratings yet
Be the first to rate ddclient.
People also visit
ddclient FAQ
What does ddclient do?
It updates a DNS record with your current IP address when that address changes, so a domain keeps pointing at your connection.
Which services does it support?
The docs say a wide range of dynamic DNS services, with examples including DuckDNS and Cloudflare, plus more than 30 others.
How do I install it?
The docs point to the installation steps in the GitHub README.
Can I keep my password out of the config file?
Yes. Append _env to a parameter such as login or password, and set the value to the name of an environment variable. The docs show DDCLIENT_LOGIN and DDCLIENT_PASSWORD.
Why did it not update after I changed my IP?
The FAQ says ddclient uses its own cache to detect IP changes and does not check DNS, to avoid problems caused by bad DNS servers or propagation delays.
How do I run it automatically?
You can run it as a daemon, or from systemd, cron, dhclient or dhcpcd. The GitHub repository has sample scripts for these.
What are the best ddclient alternatives?
Popular alternatives to ddclient include Nsupdate.info, D2c.sh and Godns. See all ddclient alternatives