Configure Ubuntu to update NameCheap Dynamic DNS

First we install the client:
Sudo apt-get install ddclient

Then we need to change the contents of the ddclient.conf file to:

Sudo nano /etc/ddclient
############
# ddclient.conf
# namecheap
############
## update time in seconds, i believe
daemon=300
## you can open this file with any text editor to see what is being sent
cache=/tmp/ddclient.cache
pid=/var/run/ddclient.pid
## This line will get your public IP address if you're system is not directly connected
## to the internet, such as behind a firewall/router
use=web, web=http://whatismyipaddress.com/, web-skip='Your IP address is'
protocol=namecheap
server=dynamicdns.park-your-domain.com
## Your Domain name
login=example.com
password='#namecheap provides this - leave quotes'
ssl=yes
## this was the tricky part for me to figure out
## I was embarrassed with myself when I learned how easy it was
## separate each sub-domain you want to update with the IP address with a comma then space
@, forum, img, ssl, tracker, webmail, www

Thats about it.. just add ddclient to startup with your pc

sudo update-rc.d ddclient defaults
sudo update-rc.d ddclient enable

Thats all there is to it. To check if the updates have occured we can use

sudo /tmp/ddclient.cache

to see if there's been any updates and if they were successful. Hope that helps šŸ™‚

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s