Using Route 53 to Configure DNS in an AWS Environment

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we work through various options available for configuring DNS. The first section of the lab entails configuring DNS within a Virtual Private Cloud, which involves working with AWS Route 53. Route 53 is the perfect tool for configuring DNS within an AWS environment and specifically for a VPC. The second part of the lab presents hybrid scenarios where on-premises servers are still part of the compute environment, and we’ll have to configure a hybrid environment with DNS. Finally, we’ll dive into a scenario where we’ve got to configure a completely external DNS server, utilizing just AWS and Route 53. Ultimately, we will have covered configuring DNS for any scenario someone may encounter in the real world.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an EC2 Instance
  • From the AWS Management Console Dashboard go in to EC2
  • click Launch Instance
  • Select and Amazon Linux AMI (first in list)
  • Select t2.micro
  • Click Review and Launch
  • Click Launch
  • Choose a Key Pair
  • Click Launch Instances
Create a Route 53 Hosted Zone
  • From AWS Management Console go into Route 53
  • Click Hosted Zones
  • Click Create Hosted Zones
  • Create Domain Name: awscloud.local
  • For type, select Private Hosted Zone for Amazon VPC
  • For VPC ID, in the dropdown select the VPC provided
  • Click Create

Additional Resources

Please log into the AWS environment by using the cloud_user credentials provided. Once inside the AWS account, make sure you are using us-east-1 (N. Virginia) as the selected region.

These are the CLI commands used in the Learning Activity:

  • cd downloads
  • chmod 400 dnslab.pem
  • sudo yum update
  • nslookup client.awscloud.local
  • cat /etc/resolv.conf
  • sudo nano /etc/resolv.conf
    Note: Search entry in /etc/resolv.conf should be 'onpremise.local' instead of 'ns1.onpremise.local'
  • nslookup ns1.onpremise.local
  • ping ns1.onpremise.local
  • cat /etc/resolv.conf
  • ping ns1
  • sudo nano /etc/resolv.conf
  • ping ns1.onpremise.local
  • ping ns1
  • sudo reboot
  • cat /etc/resolv.conf
  • ping ns1

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?