Table of Contents
Map domain name from GoDaddy to Amazon EC2 instance.
Introduction
In this tutorial, we are going to
- Create hosted zone
- Create recordset with domain and subdomains
- Add amazon namespace servers in the domain provider console
Get Elastic IP and Assign it to Amazon instance
- The first thing you need to do is get an Elastic IP, the instance IP can change during reboot etc but elastic IP are static IP’s so you should make sure you create one of them and assign it your running instance.More detailed info can be found here.
Create Hosted Zone and Record Sets
- Go to Amazon AWS -> services and select Route 53
- Click on Hosted Zones and create a hosted zone.
- Give the domain name you have bought, make sure that you don’t add www. to it.
- Any comment if you like
- Select type as Public Hosted Zone.
- You should see something like below on your screen, Name Space servers, usually there are 4 different entries.Make note of these as you need them in the last step.
- Now Create a recordset and add values as shown in image below
- Keep name field empty
- Type as A
- Alias as No
- Value – This should be the value of your elastic IP
- Routeing Policy: Simple
- Now we need to bring subdomain too, so www.yourdomain.com should also work
- In name field type www.
- Type as A
- Alias as Yes
- Alias Target from dropdown select your site name
- Routeing Policy: Simple
Add the Amazon NameSpaceServers in Control panel of Domain Provider
- Now go to GoDaddy domain console and under my domains, click on settings.
- Change the Namespace servers (you should see 2 servers name) from default to custom.
- Add all the 4 namespace servers you got in STEP 4, add them one by one. Save it and wait for a couple of minutes. Type your domain name in the browser and you should be redirected to your website.
My www does not resolve. I’ve tried this a ton of different ways.
What could be the issue?
Did you see the video on you tube ?
https://www.youtube.com/watch?time_continue=1&v=pjA9MyzUJNQ