User Tools

Site Tools


Elastic IP Address and DNS

Jun 2017


Because remembering IP Addresses is a tricky task, we can associate our Elastic IP Address with a DNS name. If you have a domain, then you can do this via your domain control panel. If you don't have a domain, then you can do this using a free domain provider.

This isn't specific to Amazon, I just put it here because its pertinent to the Elastic IP Address you just created and assigned to your instance.

For this example, I am using my domain provider LCN. You will have to use the control panel of your domain provider, the hardest part of this will be finding the correct page on your domain console, the rest is easy.

My Elastic IP in the example where we created an Elastic IP Address Create Elastic IP Address Tutorial is I am using part of a domain called

Now for those who might not know, the first part of any domain name like or is called the A Record. The A Record allows lots of subdomains that have different IP Addresses to be associated with a single top level domain name.

Lets assume I own the domain name and I want to run a web server, mail server, media server and a wiki, I could do something like this:

Web Server
Mail Server
Media Server
Wiki Server

So I have four sub domains, created by adding four A records (web, mail, media and wiki) and I have associated an IP Address to each one, these would be four Elastic IP Addresses. Each Elastic IP Address would map to a different EC2 Instance (yes you could use a single instance, but that's another level of complication).


After I have logged in to my domain provider, I need to do the following stepts:
Select the relevant domain Select DNS settings Select Add A Record.

I will then see this page.

Here I can add a new A Record, I am using testweb, my domain is so my complete domain name will be For the IP Address we need to add our AWS Elastic IP Address.

Once added, we should see something like the following page.

When you make DNS changes, they can take 24-48 hours to propergate around the entire world. So you might see some people can initially connect to the domain, while other cannot, depending on who their ISP is.

If I open a browser and navigate to I can connect to my AWS EC2 instance, without having to remember the Elastic IP Address.

This is particularly useful if you have a lot of instances and a lot of elastic IP Addresses.

elastic_ip_address_and_dns.txt · Last modified: 2023/03/09 22:35 by