Additional Lab 1 (Introduction to Amazon Route 53)

In this lab you will get an basic understanding of Amazon Route 53 and some basic steps required to get started with route 53.

In this qwiklab you will learn:

  • How to create a hosted zone for your domain
  • how to create a DNS records for Amazon EC2 Instances
  • How to Add a Route 53 health check to an Amazon EC2 web server
  • How to configure a DNS failover to an Amazon S3 static website
  • How to test the health check and failover

Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. It is designed to give developers and businesses an extremely reliable and cost effective way to route end users to Internet applications by translating names like www .example.com into the numeric IP addresses like 192.0.2.1 that computers use to connect to each other. Amazon Route 53 is fully compliant with IPv6 as well.

Note: Amazon Route 53 pricing will be charged according the Hosted zones/ Traffic Flow/Standard queries/Latency based routing queries/Geo DNS queries and health checks. If you are using a free tier up to a certain level its free.

Now lets create a hosted zone for the domain.

Click on services, click on route 53

1

In order to create a hosted name, you will first need to create a domain name. In the navigation pane, click registered Domains.

2

When you are done creating a domain name, you have to create a Hosted zone for your domain. to create a hosted zone, in the navigation pane click on hosted zone. Click on Create Hosted Zone

3

give the domain name as you previously created. in the below image you can see that i have given my domain name as route53-labs-29.com, on the comment box type Route 53 Test Domain, In the type drop-down list click on public Hosted Zone. click on create.

4

click on Hosted Zone, in the type column, click on NS record, you will see the details for what record appear in a pane to the right console. In the value box, Copy all name server values to a text file.

5

In the navigation pane, click Registered Domains and click your domain name. Click Add or edit Name Servers. 

6

In the Name server boxes, clear all the default name server rules and paste the name server values you saved to a text file in to the first four boxes. Click on Update.

7

Now the domain is associated with your hosted zone, you can create records that point to the endpoint for your website/application.

Now lets create DNS records for Amazon EC2 instances, go to Amazon Services menu and click on EC2. open it in a new tab.

8

In the navigation pane click on Instances.

9

Select the instance check box and on the description tab in the lower pane copy the Elastic IP value to a text file.

10

now go to the route 53 management console browser tab and in the navigation pane, click on Hosted Zones.

11

In the domain name column click on the domain name. and click on Create Record Set.

In the name box type www
In the type drop down list click A-IPv4 address
For alias click NO
In the TTL(seconds) clear the value and type 60
in the value box paste the elastic IP value you saved earlier to a text file.
In the routing policy select simple. and click Create.

12

In the Type column, copy the domain name to the left

13

Paste the domain name in to a new browser tab and you would see the below message which is on the image below.

14

Now lets Add a route 53 Health check to an Amazon EC2 webserver.

Why we create a route 53 health check because, AmazonRoute 53 health checks monitor the health and performance of your web applications, web servers, and other resources. Each health check that you create can monitor one of the following: The health of a specified resource, such as a web server.

To create a health check click on Health check which is in the route 53 management console and click on Create health check.

15

In the name box type qwiklabs Test
For what to monitor click the endpoint option
For specify endpoint by, click the IP address option.
In the protocol drop-down list click HTTP
In the IP address box paste the elastic IP address
In the port box type 80
Click Next

16

For create alarm, click the option yes
For send notification to click the New SNS topic option
In the Topic Name box type ServerHCFailed
In the recipient email addresses type your email address.
and click create health check.

1718

To configure a DNS failover to an Amazon S3 static website. go to router 53 management console browser tab and click on Hosted Zones, in the domain name column click the domain name, In type column, click the A record you created earlier.
In the routing policy click Failover
For the Failover Record Type: click the primary option.
For Associate with Health Check  click the yes option.
In the health check to associate dropdown list, click qwiklabs Test
Click Save Record Set

19

Go to amazon services menu and click on S3 and open it on a new tab, In the static website hosting, you will see the endpoint address copy it to a text file.

20

Go back to Route 53 Management console, click on Hosted Zones

21

In the domain name column click the domain name and click on create create record set.
In the name box type www
in the Type drop-down list click A-IPv4 address
For Alias, click the yes option
In the Alias Target drop-down list, below S3 Website Endpoints click your end point.
For associate with health check click the No option
Click Create.

2223

In the navigation pane click on Health check, the status should be healthy.

24

In the navigation pane click hosted zones, In the domain name column click the domain name, in the type column, copy the domain name to the left of A. paste the domain name in a new tab and you will get an output such shown in the image below.

25

To test the health check and failover go to EC2 management console, select the server check box. In the Actions drop-down list, select Instance state, and click stop

26

Click Yes,Stop.

27

wait till it get properly stopped.

28

Go to Route 53 Management Console and click on health checks and select the health check you created and refresh the page to see the status change to Unhealthy.

29

Open a new tab enter the url for your domain and you would see a message like which is shown below.

30

Conclusion
by the end of this lab you have learned:

  • How to create a hosted zone for your domain
  • how to create a DNS records for Amazon EC2 Instances
  • How to Add a Route 53 health check to an Amazon EC2 web server
  • How to configure a DNS failover to an Amazon S3 static website
  • How to test the health check and failover
Advertisements
This entry was posted in Quick Labs. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s