Here's a step by step to setting up dynamic dns for you EC2 instance. This is required because EC2 does not have static IPs (yet).
- First of all, you need a dynamic dns account. You can get one at www.dyndns.com or my personal favorite, www.zoneedit.com.
- After you sign up, be sure to add your domains to their system.
- Download dyndns client
- run: wget http://cdn.dyndns.com/ddclient.tar.gz
- The download includes Installation Instructions in the README, but the step by step is below
- tar -zxvf ddclient.tar.gz
- cd ddclient-X.Y
- cp ddclient /usr/sbin/
- mkdir /etc/ddclient
- nano -w /etc/ddclient/ddclient.conf
- Then fill in config file:
FOR ZONEEDIT
# Basic configuration file for ddclient
#
# /etc/ddclient.conf
daemon=600
pid=/var/run/ddclient.pid
use=web, web=checkip.dyndns.org/, web-skip='IP Address'
login=[USERNAME
password=[PASSWORD]
protocol=zoneedit1
server=www.zoneedit.com
wildcard=YES
[YOUR DOMAIN(S), COMMA DELIMITED LIST]
FOR DYNDNS
# Basic configuration file for ddclient
#
# /etc/ddclient.conf
daemon=600
pid=/var/run/ddclient.pid
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
login=[USERNAME
password=[PASSWORD]protocol=dyndns2
server=members.dyndns.org
wildcard=YES
[YOUR DOMAIN(S), COMMA DELIMITED LIST]
custom=yes, example.com
Continuing on:
- cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
- /sbin/chkconfig --add ddclient
- This makes it startup automatically next time you reboot
- /etc/rc.d/init.d/ddclient start
- This is to start it the first time by hand
- DON'T RUN THIS until your server is fully setup if you are moving servers because people will start hitting this server after you run this
That's it, not too difficult and gives you a real domain name to point at your EC2 instance.

Microsoft® Windows Vista™ includes both Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6) protocol stacks that are installed and enabled by default. Domain Name System (DNS) name queries and registrations can now involve both IPv4 address records (A records) and IPv6 address records (AAAA records). This article describes the behavior of the DNS Client service in Windows Vista for DNS queries and registrations and the possible impact on DNS traffic.
ReplyDelete