DNS HOST
DNS
Step 1: Go to Route 53
- Open AWS Console
- Search --> Route 53
- Click Hosted Zones
Step 2: Create Hosted Zone
Click:
Create Hosted Zone
Fill:
-
Domain Name:
yourdomain.com(can be real or dummy)
- Type:
- Public Hosted Zone (for internet access)
Click:
Create Hosted Zone
Step 3: Understand Default Records
You’ll see 2 important records:
NS Record (Name Servers)
- List of AWS DNS servers
- Used to route domain traffic to AWS
SOA Record
- Contains admin + config info
Step 4: Create DNS Record (A Record)
Click:
Create Record
Fill:
-
Record Name: (optional)
www - Record Type: A
-
Value:
<your EC2 public IP>
Click:
Create Record
Step 5: Link Domain
If you bought domain from:
- GoDaddy / Namecheap etc.
You must:
Replace their nameservers with Route 53 NS values
Example:
ns-123.awsdns-45.com
ns-678.awsdns-12.net
Step 6: Test in Browser
http://www.yourdomain.com
It will open your EC2 website
Flow Chart
User --> DNS Query --> Route 53 --> A Record --> EC2 IP --> Website loads
Comments
Post a Comment