Ubuntu – OpenDNS Client Install and Configure

|
sudo apt-get install ddclient

Select “Other” and tap the Enter key

Config Screen 1
Config Screen 1

Type in your defined server and tap the Enter key

Config Screen 2
Config Screen 2

Select “dyndns2” and tap the Enter key

Config Screen 3
Config Screen 3

Type in your username and tap the Enter key
Type in your password and tap the Enter key
Type in your password again and tap the Enter key

Type in the network interface you use (typically eth0)

Config Screen 6
Config Screen 6

Type in the update server and tap the Enter key

Config Screen 7
Config Screen 7

After all of this done run the below just to make sure you have everything to make it secure

sudo cp /etc/ddclient.conf /etc/ddclient.conf.original

sudo echo "daemon=300" > /etc/ddclient.conf
sudo echo "pid=/var/run/ddclient.pid" >> /etc/ddclient.conf
sudo echo "ssl=yes" >> /etc/ddclient.conf
sudo echo "" >> /etc/ddclient.conf
sudo echo "##" >> /etc/ddclient.conf
sudo echo "## OpenDNS.com account-configuration" >> /etc/ddclient.conf
sudo echo "##" >> /etc/ddclient.conf
sudo echo "use=web, web=myip.dnsomatic.com" >> /etc/ddclient.conf
sudo echo "ssl=yes" >> /etc/ddclient.conf
sudo echo "server=updates.opendns.com" >> /etc/ddclient.conf
sudo echo "protocol=dyndns2" >> /etc/ddclient.conf
sudo echo "login=opendns_username" >> /etc/ddclient.conf
sudo echo "password=opendns_password" >> /etc/ddclient.conf
sudo echo "opendns_network_label" >> /etc/ddclient.conf
sudo cp /etc/default/ddclient /etc/default/ddclient.original
sudo sed -i 's|run_daemon="false"|run_daemon="true"|g' /etc/default/ddclient

sudo /etc/init.d/ddclient restart
sudo /etc/init.d/ddclient status

If needed you can reconfigure the client via the screens again with this command

dpkg-reconfigure ddclient
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.