Dynamic DNS

All posts tagged Dynamic DNS

DynDNS Client configuration on Linux systems

Published December 16, 2013 by Siva

What is DynDNS:

As you know any domain should be pointed to an IP in order to be seen in browsers. If you don’t have a connection to the internet with static IP (cable, DSL, etc.), then it becomes tedious to set an A record for your domain every time your IP changes. Dynamic DNS is a feature that will allow you to point a domain name to any IP and the changes are almost immediate.

For example, you have a server at home and host a website on your computer. But you don’t have a static IP, that is the IP changes each time you reconnect to the Internet, you can setup Dynamic DNS for the domain.

Download from the below link:

http://sourceforge.net/projects/ddclient/

INSTALLATION:

1)   cp ddclient /usr/sbin/
2) mkdir /etc/ddclient
3)  cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
 4)  vi /etc/ddclient/ddclient.conf
  — and change hostnames, logins, and passwords appropriately

Example :

  ## For those using Redhat style rc files and using daemon-mode:
  cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
  ## enable automatic startup when booting
  /sbin/chkconfig –add ddclient
  ## start the first time by hand
  /etc/rc.d/init.d/ddclient start

  ## If you are not using daemon-mode, configure cron and dhcp or ppp
  ## as described below.
protocol=namecheap
use=web, web=checkip.dyndns.com/, web-skip=’IP Address’
server=dynamicdns.park-your-domain.com
login=mydomain.com
password=’XXXXXXXXXXXXXXXXXXXXXX’

# I need to update for my subdomain
mysubdomain

Debug :

ddclient -daemon=0 -debug -verbose -noquiet

Cache file location :

/var/cache/ddclient/ddclient.cache

Force update:

ddclient –force

API:

http://dynamicdns.park-your-domain.com/update?host=Mysubdomain&domain=mydomain.com&password=XXXXXXXXXXXX&ip=100.1.1.1

 

—– End —

Advertisements