Home » How To Connect Domain to AWS EC2?

How To Connect Domain to AWS EC2?

AWS EC2

How To Connect Domain to AWS EC2?

 

To connect your domain name to AWS EC2 Instance, you need to get the IP address first via EC2 Console and then create an A record in the domain name’s DNS.

Here are the instructions how to do it.

 

Connect 3rd-party domain to AWS EC2 Instance

Get The Public IPv4 address

Follow the steps below to get the IP address from your Amazon EC2 Instance Console:

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the Regions list in the upper right corner of the console, choose the Region that you launched the instance in.
  3. In the navigation pane, choose Instances.
  4. In the table, choose the instance that you want to route traffic to.
  5. In the bottom pane, on the Description tab, get the value of Elastic IPs.If you didn’t associate an Elastic IP with the instance, get the value of IPv4 Public IP.

 

Create an A record

This process varies depending who’s hosting the DNS of your domain name. In a nutshell, you need to point your custom domain to the IP address provided by AWS EC2 using an A record.

You may login to your domain dashboard and look for the DNS section where you can add the A record. If you’re having trouble finding it, it will be much easier to contact your domain provider to ask for assistance.

For registrar-specific instruction on how to create an A record, check the links below:

Note: DNS changes may take up to 48 hours to fully propagate in the entire internet, so if you just added the A record, give it sometime to kick in.


Connect GoDaddy Domain to AWS EC2

Here’s the 2-part integration process on how to connect your GoDaddy domain to AWS EC2.

Get The Public IPv4 address

Follow the steps below to get the IP address from your Amazon EC2 Instance Console:

  1. Sign in to the AWS Management Console and open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
  2. In the Regions list in the upper right corner of the console, choose the Region that you launched the instance in.
  3. In the navigation pane, choose Instances.
  4. In the table, choose the instance that you want to route traffic to.
  5. In the bottom pane, on the Description tab, get the value of Elastic IPs.
    • If you didn’t associate an Elastic IP with the instance, get the value of IPv4 Public IP.

 

Create an A record

  1. Log in to your GoDaddy Domain Control Center.
  2. Select your domain to access the Domain Settings page.
  3. Under Additional Settings, select Manage DNS.
  4. Select Add under the records table.
  5. Under Type, select A.
  6. Enter the details for your CNAME record:
    • Host: www or @
    • Points to: {Provided AWS EC2 IPv4 address}
    • TTL: 300 seconds is acceptable.
  7. Select Save to save your new A record.

Note: DNS changes may take up to 48 hours to fully propagate in the entire internet, so give it some time to kick in.

Back to top

Some of the links on the Website may be "affiliate links". This means if you click on the link and sign up or purchase an item, I may receive an affiliate commission at no cost to you. Please check Disclaimer for more info.

Leave a Reply