Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 9: Domain Names, DNS and Subdomains

9.6 Pointing a GoDaddy domain to EC2 (GoDaddy DNS)

Come on, now let's point the domain to EC2. Here GoDaddy stays both registrar and DNS host – the simplest way.

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.

Ravindra Bagale's Tip

Many students add a new A record but leave GoDaddy's old "Parked" A record in place. Then visitors sometimes land on your site and sometimes on the parking page. Keep only one A record for @ and turn Forwarding off.

Lab

Chala, GoDaddy DNS madhe @ cha A record tumchya Elastic IP la aani www cha CNAME @ la set kara. Mag dig example.com +short aani dig www.example.com +short chalvun donhi tumcha Elastic IP dakhavtat ka te bagha (example.com chya jagi tumcha domain).