Chapter 9: Domain Names, DNS and Subdomains
9.6 Pointing a GoDaddy domain to EC2 (GoDaddy DNS)
Quick answer: the short, self-contained version of this lesson is the guide How to Connect a GoDaddy Domain to AWS EC2.
Come on, now let's point the domain to EC2. Here GoDaddy stays both registrar and DNS host – the simplest way.
चला, आता डोमेन EC2 कडे वळवूया. इथे GoDaddy रजिस्ट्रार आणि DNS होस्ट दोन्ही राहतो – सगळ्यात सोपा मार्ग.
चलो, अब डोमेन को EC2 की तरफ़ मोड़ते हैं. यहाँ GoDaddy रजिस्ट्रार और DNS होस्ट दोनों रहता है – सबसे आसान तरीका.
This is the simplest method: GoDaddy stays both registrar and DNS host.
- My Products → Domains → click your domain → DNS (or Manage DNS).
- 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). - Set Value / Points to = your Elastic IP
13.233.10.25, TTL = 600 seconds (or Custom → 600) → Save. - Find the CNAME record
www. Make sure its value is@(meaningexample.com). If it is missing, Add New Record → CNAME, Namewww, Value@. - 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. - 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.
Ravindra Bagale's Tip – मराठी
खूप students नवीन A record add करतात पण GoDaddy चा जुना "Parked" A record तसाच ठेवतात. मग visitors कधी तुमच्या site वर तर कधी parking page वर जातात. @ साठी फक्त एकच A record ठेवा आणि Forwarding बंद करा.
Ravindra Bagale's Tip – हिंदी
बहुत students नया A record add करते हैं पर GoDaddy का पुराना "Parked" A record वैसे ही छोड़ देते हैं. फिर visitors कभी आपकी site पर तो कभी parking page पर पहुँचते हैं. @ के लिए सिर्फ़ एक A record रखो और Forwarding बंद करो.
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).