Hosting Your Own WordPress Blog – Step 3 – Create a Hosted Zone Using Amazon Route 53

Step 3 – EASY

Hosted zones are easy to set up, but the control interface may not be easy to understand.

The goal of step 3 is to tie two very important things together: your domain name and your cloud server. Stated another way, you want your domain name to point to your cloud server.

You may notice that the server we created in step 2 has an address, and that we connected to it through the terminal. So we can certainly connect to our EC2 server, but the address is unruly and difficult to remember. To illustrate, here are all of the addresses that exist for infinitedab.com. Note that each of these will take you to the blog home page, but only one of them is what you’d want to share with your users:

As you can see, each of these are a real way to access a website. The first two are crazy though, and you wouldn’t expect your users to type those in. What your really want is the 3rd option: a website name tied to an IP. So let’s jump right in and use Amazon Route 53 to make this happen.

 

AWS Management Console Login
AWS Management Console Login

First thing we’ll do is log into the AWS console with our account here:  AWS Management Console. This is the same console we’ve logged into in step 3.

 

 

 

 

 

AWS Services
AWS Services

Once logged in, you’ll see a very large list of services (shown below). The services we’re interested in are: EC2, Route 53, and RDS. For this step however, we’re only interested in Route 53. Unlike “EC2”, I have no idea what “Route 53” means from a naming perspective. I’m Californian, so I think “Route 66” whenever I see this. Click on the Route 53 link. Use the search bar provided if you are unable to find it.

 

Amazon Route 53 - Create Hosted Zone
Amazon Route 53 – Create Hosted Zone

Once you arrive at the Route 53 dashboard, look for the “Hosted Zones” link in the left column. Click that and you’ll see a link to “Create Hosted Zone”. Click this button and you’ll be greeted with a “Create” dialog to the right. We want to create a new “Hosted Zone” entry here, then fill it up with SOA, NS, and A records. Enter your domain name and a comment, then click “Create”.

 

 

 

 

Amazon Route 53 - Sample Hosted Zone Created
Amazon Route 53 – Sample Hosted Zone Created

After clicking create, you will see something like the above. Note that two records exist: NS and SOA. We just need to create three A records now. Click the “Create Record Set” button on the top to get started. We will use the record entry field that appeared on the right to make our entries. After each entry we will click the “Create” button on the bottom.

 

Amazon Route 53 - Create Record Set
Amazon Route 53 – Create Record Set

Here is a summary of the records we are creating. Note that the first record will have an empty “Name” field, the second will have an asterisk, and the last will have a www. Also, for each entry you need to locate your EC2 IP Address by following the instructions further below:

  • Record 1:
    • Name:
    • Type: A – IPv4 Address
    • Value: [IP address of your EC2 Instance, e.g: 54.189.133.122]
  • Record 2:
    • Name: *
    • Type: A – IPv4 Address
    • Value: [IP address of your EC2 Instance, e.g: 54.189.133.122]
  • Record 3:
    • Name: www
    • Type: A – IPv4 Address
    • Value: [IP address of your EC2 Instance, e.g: 54.189.133.122]

 

Instructions: Finding IP address of your EC2 Instance:

EC2 Instance Public IP: IPv4 Public IP
EC2 Instance Public IP: IPv4 Public IP
  • First, revisit your EC2 control panel
  • Click “running instances”
  • Find your instance name, and click it or scroll right
  • Locate the IPv4 Public IP value. Our sample instance is: 34.221.223.243
  • Copy this value into each of your “A” record “Value” fields.

 

Once complete, you should have 3 “A” records similar to mine. As you can see, infinitedab.com has 5 total records (using the real ip of my ec2 instance, not the sample IP):

infinitedab.com Route 53 Records
infinitedab.com Route 53 Records

Congratulations!

You’ve completed step 3, which is ranked at EASY difficulty. Now onto step 4.

 


All Steps:

Introduction & Overview- Hosting Your Own WordPress Blog

  1. (EASY) Buying a Domain Name
  2. (HARD) Create a Cloud Server Using Amazon AWS
  3. (EASY) Create a Hosted Zone Using Amazon Route 53
  4. (HARD) Install Apache and PHP on Your Cloud Server
  5. (EASY) Create MySQL Cloud Database Using Amazon RDS
  6. (EASY) Download and Install WordPress on Your Server

Leave a Reply

Your email address will not be published. Required fields are marked *