Inadyn | Small and simple DDNS client
Table of Contents
- Supported Providers
- Example Configuration
- Generic DDNS Plugin
- Build & Install
- Origin & References
Inadyn is a small and simple DDNS client with HTTPS support. It is commonly available in many GNU/Linux distributions, used in off the shelf routers and Internet gateways to automate the task of keeping your DNS record up to date with any IP address changes from your ISP. It can also be used in installations with redundant (backup) connections to the Internet.
If your ISP provides you with a DHCP or PPPoE/PPPoA connection you risk losing your IP address every time you reconnect, or in DHCP even when the lease is renegotiated.
By using a DDNS client such as Inadyn you can register an Internet name at certain providers that the DDNS client updates, periodically and/or on demand when your IP changes.
Inadyn can maintain multiple host names with the same IP address, and has a web based IP detection which runs well behind a NAT router.
The following DDNS providers are supported natively, other providers, like http://twoDNS.de for instance, can be supported using the generic DDNS plugin. See below for configuration examples.
Some of these services are free of charge for non-commercial use, others take a small fee, but also provide more domains to choose from.
Inadyn v1.99.8 and later support HTTPS (v1.99.11 and later also support SNI), for DDNS providers that support this (you must check this yourself). Tested are DynDNS, FreeDNS, nsupdate.info, and Loopia.
Using HTTPS is recommended since it protects your credentials from being snooped and further reduces the risk of someone hijacking your account.
Note: No HTTPS certificate validation is currently done, patches welcome!
Inadyn supports updating several DDNS servers, several accounts even on different DDNS providers. The following example config file illustrates how it can be used. Feature is courtesy of Christian Eyrich.
background verbose 1 period 300 cache-dir /mnt/ddns startup-delay 60 #logfile /var/log/ddns.log #pidfile /var/run/ddns.pid system email@example.com ssl username yxxx password xyxx alias yyy alias zzz system firstname.lastname@example.org username xxyx password xxxy alias yyy
In a multi-user setup, make sure to chmod your .conf to 600 (read-write only by you/root) to prevent other users from accessing your DDNS server credentials.
Note, here only the DynDNS account uses SSL, the No-IP account will still use regular HTTP. See below for SSL build instructions.
The example has two commented out lines: logfile is disabled, causing
Inadyn to default to use syslog, the pidfile is also commented out, so
Inadyn defaults to create
The example also has a cache directory specified, which in this case is
a persistent store for the three cache files
Generic DDNS Plugin
Aside from dedicated DDNS provider support, Inadyn also has a generic DDNS provider plugin. A DDNS provider like twoDNS.de can be setup like this:
period 300 startup-delay 60 cache-dir /etc/inadyn system custom@http_srv_basic_auth ssl checkip-url checkip.two-dns.de / server-name update.twodns.de server-url /update?hostname= username myuser password mypass alias myalias.dd-dns.de
For Namecheap DDNS:
system custom@http_srv_basic_auth ssl server-name dynamicdns.park-your-domain.com server-url /update?domain=YOURDOMAIN.TLD&password=NAMECHEAP-PROVIDED-DDNS-PASSWORD&host= alias myalias username your-username password namecheap-provided-ddns-password
server-name as is, and change
myalias if you wish to use a
subdomain if you wish to use one. Username is your Namecheap username, and
password would be the one given to you in the Dynamic DNS panel from
When using the generic plugin you should first inspect the response from the DDNS provider. Inadyn currently looks for a 200 HTTP response OK code and the string "good" or "OK" in the HTTP response body. You may have to modify Inadyn manually, any patches for this are most welcome!
Build & Install
By default Inadyn tries to build with GnuTLS for HTTPS support. GnuTLS is the recommended SSL library to use on UNIX distributions which do not provide OpenSSL as a system library. However, when OpenSSL is available as a system library, for example in many embedded systems:
To completely disable the HTTPS support in Inadyn:
For more details on the OpenSSL and GNU GPL license issue, see: