Ravindra BagaleCourses & study guides

Chapter 9: Domain Names, DNS and Subdomains

9.6 Pointing a GoDaddy domain to EC2 (GoDaddy DNS)

This is the simplest method: GoDaddy stays both registrar and DNS host.

  1. My Products → Domains → click your domain → DNS (or Manage DNS).
  2. In the DNS Records list, find the A record with name @. A new domain usually points it to GoDaddy's "Parked" page. Click Edit (pencil icon).
  3. Set Value / Points to = your Elastic IP 13.233.10.25, TTL = 600 seconds (or Custom → 600) → Save.
  4. Find the CNAME record www. Make sure its value is @ (meaning example.com). If it is missing, Add New Record → CNAME, Name www, Value @.
  5. Delete any extra A records for @ that still point to parking/forwarding IPs, and turn off Forwarding if it was enabled. Two different A records for the same name make visitors randomly land on the wrong server.
  6. Leave NS, SOA and any MX/TXT records (email, verification) as they are.

The DNS table should look like this:

Type Name Value TTL
A @ 13.233.10.25 600 seconds
CNAME www @ 1 hour
A blog 13.233.10.25 600 seconds
NS @ ns51.​domaincontrol.​com (do not edit) 1 hour

Usually the new A record works within minutes. Verify with dig (section 9.9) before blaming the web server.

Using another registrar?

Namecheap: Domain List → Manage → Advanced DNS. Hostinger: Domains → DNS / Nameservers. The same records apply: A @ → Elastic IP, CNAME www → root domain.