This Knowledge Base article will show you how to set up an IP updater on Linux, in order to keep the dynamic IP address of your network up to date.
Linux IP updater
The ddclient is an open-source dynamic IP updater client written in Perl. If your Linux distribution does not have a recent version of ddclient, you can download the tar file here. You can also install it by executing sudo apt-get install ddclient in a terminal. Please keep in mind that this command works only on Debian-based distributions. For RPM-based distributions, please try sudo yum install ddclient.
To use ddclient with OpenDNS, after you install it on your machine, you have to set it up properly by modifying its configuration file which is located at
/etc/ddclient.conf. Please use the following configuration outline, while supplementing the account login, password, and network label lines:
## OpenDNS.com account-configuration
- The login is your email address with OpenDNS.
- If you have special characters in your password wrap the password in single-quotes ( ' ). If there are any single-quotes in your password, put backslash ( \ ) before the single-quote to escape the character.
- 'opendns_network_label' is the label given to the network you're updating in your account. You can find the network label in the Settings Tab of the OpenDNS Dashboard. If you're an Umbrella customer, this is the name of the Network you've enabled Dynamic updates for in the Configuration. If you have spaces in your network label, replace them with an underscore ( _ )
In order to turn on the updater, please execute the command sudo service ddclient start in a terminal. You can check its status with sudo service ddclient status and you can stop it with the command sudo service ddclient stop. Please keep in mind that ddclient doesn't automatically start when your system boots, but this can be scheduled using either cron or systemd.
Your IP address belongs to a different network
When this issue occurs, sudo service ddclient status returns the following error message:
This happens most often when using someone else's network (e.g. public wireless hotspot, a friend's wireless network etc.). Each OpenDNS user is uniquely identified by an IP address. If you use someone else's connection which is already configured to use the OpenDNS service, we then detect that more than one OpenDNS account claims to use the same IP address.
If you're temporarily using someone else's network connection, you can ignore this error. If you believe this IP address really belongs to you, you can contact support.
ddclient is stuck
When this issue occurs, sudo service ddclient status returns the following warning message:
This happens most often when you're trying to update your dynamic IP address many times in too short of a period by restarting the ddclient service. In this case, in order to instantly fix this issue, please delete the file /var/cache/ddclient/ddclient.