SlideShare a Scribd company logo
1 of 6
Download to read offline
L­­ive! Lab
Configuring
VPC DNS
Related Courses
AWS Certified
Solutions Architect
- Professional
Related Videos
Network
Technologies
Working with VPC
DNS
Need Help?
Linux Academy
Community
... and you can
always send in a
support ticket on
our website to talk
to an instructor!Lab Connection Information
•	 Labs may take up to five minutes to build
•	 Access to an AWS Console is provided on the Live!
Lab page, along with your login credentials
•	 Ensure you are using the N. Virginia region
•	 Labs will automatically end once the alloted amount
of time finishes
Contents
Create an Instance 1
Configure Internal DNS 1
VPC Settings 1
Set Up DNS 2
Create an Internal Record Set 2
Using On-Premise DNS 3
Set All Instances to Use On-Premise DNS 3
Configuring VPC DNS	 Linux Academy
- 1 -
Route 53 provides internal DNS to AWS VPCs. AWS also permits outside DNS for companies expanding
out to their cloud systems. This lab reviews both way of managing DNS through AWS.
Log in to the AWS console using the credentials provided on the Live! Lab page.
Create an Instance
Navigate to the EC2 Dashboard and select the Instances page. Here we can see an already-existing
instance, On Premise DNS. This instance is to be used for the on-premise DNS configuration; we still need
to create a second instance for the lab.
Press Launch Instance. Select Amazon Linux AMI, then t2.micro as the Instance Type. Press Next:
Configure Instance Details. Ensure that the Network address is set to (10.0.0.0/16), and the Subnets
available are (10.0.0.0/24) and (10.0.2.0/24). Select Enable for the Auto-assign Public IP option. Press
Next: Add Storage, then Next: Tag Instance. We do not need to adjust the storage settings.
For Tag Instance, use client as the Value, then press Next: Configure Security Group. Choose the Select
an existing security group radio button, and select the one that contains your Linux Academy username.
Press Review and Launch.
From here, review your selections if needed, then select Launch. A pop-up box appears, asking for a key
pair. Choose Create a new key pair from the drop-down list. We choose to name ours dnslab. Download
the key pair, then select Launch Instances.
To ensure the instance works, open up your terminal, and navigate to the folder that contains the key pair
download. Update the permissions:
chmod 400 dnslab.pem
Return to the AWS console. Select the client instance, then click Connect. Connect to the instance using
the provided example.
Be aware it may take multiple minutes for the server to be ready for use.
Configure Internal DNS
VPC Settings
From the top Services menu, navigate to Networking, then VPC (Virtual Private Cloud). Select Your
VPC from the menu.
We need to confirm that our VPC is properly configured to work with DNS — this means that DNS and
Configuring VPC DNS	 Linux Academy
- 2 -
hostname both need to be enabled. Check the available VPC and go to Actions, Edit DNS Resolution.
Ensure is it set to Yes. Do the same for Edit DNS Hostnames.
Set Up DNS
Navigate to Route 53, also located under Networking. You may receive a permissions error, but this can
be ignored. From there, move to Hosted zones and select Create Hosted Zone.
In actual practice, the domain name used would be related to the organization. In this lab, we instead use the
domain awscloud.local, which implies this is an internal zone. Set Private Hosted Zone for Amazon VPC
for Type, and select the VPC in the US East (N. Virginia) region for VPC ID. To confirm this is correct,
check the VPC name against the VPC ID in the VPC Dashboard. Select Create.
Create an Internal Record Set
From the dashboard of the hosted zone, select Create Record Set.
Set the Name to client. Next, set the Value to the private IP of your client instance, which can be found
under the EC2 Dashboard, by clicking on Instances and selecting the client instance. Press Create.
Now, switch to your terminal. Ensure you are logged in to your client instance. Run:
nslookup client.awscloud.local
It should output results similar to:
Server: 10.0.0.2
Address: 10.0.0.2#53
Non-authoritative answer:
Name: client.awscloud.local
Address: 10.0.0.72
The IP in the address field should be the client instance’s private IP that was added in the Route 53 client.
awscloud.local rules.
Review the /etc/resolv.conf file:
sudo cat /etc/resolv.conf
This outputs the default search settings and nameserver information. If secondary DNS records were added,
it would failover to the second, should AWS’s DNS cease to work.
Configuring VPC DNS	 Linux Academy
- 3 -
Using On-Premise DNS
We want to allow our AWS applications to reference servers and instances in the “On Premise DNS” server.
However, this cannot be done with Route 53, since those must originate within the AWS cloud.
Connect to your client from your terminal and view /etc/resolv.conf:
sudo cat /etc/resolv.conf
From here we can see that we’re still looking atAmazon’s internal DNS.Any secondary servers added work
as a failover, so if we wish to use our on-premise internal DNS, we need to replace our internal AWS DNS.
Open /etc/resolv.conf and change the nameserver to match the on-premise private IP, which is 10.0.2.100.
Save and exit.
There is a DNS record located “on-premise” that we have available. To check that everything works, run:
nslookup ns1.onpremise.local
You should get a resolved return:
Server: 10.0.2.100
Address: 10.0.2.100#53
Name: ns1.onpremise.local
Address: 10.0.2.100
Should we ping ns1.onpremise.local, we notice that it is returning the address. However, should we
ping ns1 itself, it fails, because, by default, it assumes we are trying to run ping ns1. ec2.local.
This can be changed by altering the /etc/resolv.conf file:
; generated by /sbin/dhclient-script
search onpremise.local
nameserver 10.0.2.100
We can now ping ns1.
Set All Instances to Use On-Premise DNS
We need not use Route 53 DNS at all. To only use on-premise DNS, navigate to your VPC dashboard and
select DHCP Options Set. Click Create DCHP options set.
Set the Name tag to on-premise and the Domain name to onpremise.local. For this example, the Domain
name server should be set to our On Premise server’s private IP: 10.0.2.100. Press** Yes, Create**.
Configuring VPC DNS	 Linux Academy
- 4 -
From the sidebar, choose Your VPCs. Select your VPC and select Edit DHCP Options Set from the
Actions menu. Choose the one with the on-premise tag, and save.
The changes have yet to take effect, and do not do so automatically. For them to do so, either type sudo
reboot in the terminal or do it through the EC2 console. When the instance is newly-booted, return to your
terminal and ping ns1.

More Related Content

What's hot

AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)
AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)
AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)Amazon Web Services
 
ITB2019 Serverless CFML on AWS Lambda - Pete Freitag
ITB2019  Serverless CFML on AWS Lambda - Pete FreitagITB2019  Serverless CFML on AWS Lambda - Pete Freitag
ITB2019 Serverless CFML on AWS Lambda - Pete FreitagOrtus Solutions, Corp
 
Advanced Container Management and Scheduling
Advanced Container Management and SchedulingAdvanced Container Management and Scheduling
Advanced Container Management and SchedulingAmazon Web Services
 
Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Amazon Web Services
 
Amazon Web Services EC2 Container Service (ECS)
Amazon Web Services EC2 Container Service (ECS)Amazon Web Services EC2 Container Service (ECS)
Amazon Web Services EC2 Container Service (ECS)Mayank Patel
 
Consuming Cinder from Docker
Consuming Cinder from DockerConsuming Cinder from Docker
Consuming Cinder from DockerTesora
 
New features of Azure Cloud Provider at OCP 3.10
New features of Azure Cloud Provider at OCP 3.10New features of Azure Cloud Provider at OCP 3.10
New features of Azure Cloud Provider at OCP 3.10Takayoshi Tanaka
 
Distributed automation sel_conf_2015
Distributed automation sel_conf_2015Distributed automation sel_conf_2015
Distributed automation sel_conf_2015aragavan
 
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game RequestsAmazon Web Services
 
How to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud SolutionsHow to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud SolutionsNoam Zakai
 
Continuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceContinuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceAmazon Web Services
 
Building and Scaling a Containerized Microservice - DevDay Austin 2017
Building and Scaling a Containerized Microservice - DevDay Austin 2017Building and Scaling a Containerized Microservice - DevDay Austin 2017
Building and Scaling a Containerized Microservice - DevDay Austin 2017Amazon Web Services
 
Powershell_Basics_Robin
Powershell_Basics_RobinPowershell_Basics_Robin
Powershell_Basics_RobinRobin Aggarwal
 
Gruntwork Executive Summary
Gruntwork Executive SummaryGruntwork Executive Summary
Gruntwork Executive SummaryYevgeniy Brikman
 
Continuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSContinuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSAmazon Web Services
 
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up Loft
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up LoftTurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up Loft
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up LoftAmazon Web Services
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShellAn Introduction to Windows PowerShell
An Introduction to Windows PowerShellDale Lane
 
Docker Container automatisiert nach AWS deployen - Continuous Lifecycle 2016
Docker Container automatisiert nach AWS deployen  - Continuous Lifecycle 2016Docker Container automatisiert nach AWS deployen  - Continuous Lifecycle 2016
Docker Container automatisiert nach AWS deployen - Continuous Lifecycle 2016Philipp Garbe
 

What's hot (20)

AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)
AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)
AWS re:Invent 2016: Amazon ECR Deep Dive on Image Optimization (CON401)
 
ITB2019 Serverless CFML on AWS Lambda - Pete Freitag
ITB2019  Serverless CFML on AWS Lambda - Pete FreitagITB2019  Serverless CFML on AWS Lambda - Pete Freitag
ITB2019 Serverless CFML on AWS Lambda - Pete Freitag
 
Advanced Container Management and Scheduling
Advanced Container Management and SchedulingAdvanced Container Management and Scheduling
Advanced Container Management and Scheduling
 
Advanced Container Scheduling
Advanced Container SchedulingAdvanced Container Scheduling
Advanced Container Scheduling
 
Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017Getting Started with Docker on AWS - DevDay Austin 2017
Getting Started with Docker on AWS - DevDay Austin 2017
 
Amazon Web Services EC2 Container Service (ECS)
Amazon Web Services EC2 Container Service (ECS)Amazon Web Services EC2 Container Service (ECS)
Amazon Web Services EC2 Container Service (ECS)
 
ECS - from 0 to 100
ECS - from 0 to 100ECS - from 0 to 100
ECS - from 0 to 100
 
Consuming Cinder from Docker
Consuming Cinder from DockerConsuming Cinder from Docker
Consuming Cinder from Docker
 
New features of Azure Cloud Provider at OCP 3.10
New features of Azure Cloud Provider at OCP 3.10New features of Azure Cloud Provider at OCP 3.10
New features of Azure Cloud Provider at OCP 3.10
 
Distributed automation sel_conf_2015
Distributed automation sel_conf_2015Distributed automation sel_conf_2015
Distributed automation sel_conf_2015
 
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
(GAM402) Turbine: A Microservice Approach to 3 Billion Game Requests
 
How to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud SolutionsHow to work with Selenium Grid and Cloud Solutions
How to work with Selenium Grid and Cloud Solutions
 
Continuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceContinuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container Service
 
Building and Scaling a Containerized Microservice - DevDay Austin 2017
Building and Scaling a Containerized Microservice - DevDay Austin 2017Building and Scaling a Containerized Microservice - DevDay Austin 2017
Building and Scaling a Containerized Microservice - DevDay Austin 2017
 
Powershell_Basics_Robin
Powershell_Basics_RobinPowershell_Basics_Robin
Powershell_Basics_Robin
 
Gruntwork Executive Summary
Gruntwork Executive SummaryGruntwork Executive Summary
Gruntwork Executive Summary
 
Continuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSContinuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECS
 
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up Loft
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up LoftTurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up Loft
TurboCharge Your Continuous Delivery Pipeline with Containers - Pop-up Loft
 
An Introduction to Windows PowerShell
An Introduction to Windows PowerShellAn Introduction to Windows PowerShell
An Introduction to Windows PowerShell
 
Docker Container automatisiert nach AWS deployen - Continuous Lifecycle 2016
Docker Container automatisiert nach AWS deployen  - Continuous Lifecycle 2016Docker Container automatisiert nach AWS deployen  - Continuous Lifecycle 2016
Docker Container automatisiert nach AWS deployen - Continuous Lifecycle 2016
 

Similar to Configuring vpc-dns 1479227864 (2)

How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS Julien Lecadou,MSc.
 
Aws project jenkins-build-server
Aws project jenkins-build-serverAws project jenkins-build-server
Aws project jenkins-build-serversaifam
 
McrUmbMeetup 22 May 14: Umbraco and Amazon
McrUmbMeetup 22 May 14: Umbraco and AmazonMcrUmbMeetup 22 May 14: Umbraco and Amazon
McrUmbMeetup 22 May 14: Umbraco and AmazonDan Lister
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howtomailbhargav
 
How to test if Cloudflare is running live for your website
How to test if Cloudflare is running live for your websiteHow to test if Cloudflare is running live for your website
How to test if Cloudflare is running live for your websiteVu Long Tran
 
Aws overview part 3(databases, dns and management services)
Aws overview   part 3(databases, dns and management services)Aws overview   part 3(databases, dns and management services)
Aws overview part 3(databases, dns and management services)Parag Patil
 
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7VCP Muthukrishna
 
Route 53 for Multi-Account Environments
Route 53 for Multi-Account EnvironmentsRoute 53 for Multi-Account Environments
Route 53 for Multi-Account EnvironmentsStacey Graham
 
DevOps for the Enterprise: Virtual Office Hours
DevOps for the Enterprise: Virtual Office HoursDevOps for the Enterprise: Virtual Office Hours
DevOps for the Enterprise: Virtual Office HoursAmazon Web Services
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerPawan Kumar
 
AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy Ratan Das
 
Designing High Availability for HashiCorp Vault in AWS
Designing High Availability for HashiCorp Vault in AWSDesigning High Availability for HashiCorp Vault in AWS
Designing High Availability for HashiCorp Vault in AWS☁ Bryan Krausen
 
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Amazon Web Services
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2Katy Slemon
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administratorsSharon James
 

Similar to Configuring vpc-dns 1479227864 (2) (20)

How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS How to set up a Windows Domain on AWS
How to set up a Windows Domain on AWS
 
Aws project jenkins-build-server
Aws project jenkins-build-serverAws project jenkins-build-server
Aws project jenkins-build-server
 
McrUmbMeetup 22 May 14: Umbraco and Amazon
McrUmbMeetup 22 May 14: Umbraco and AmazonMcrUmbMeetup 22 May 14: Umbraco and Amazon
McrUmbMeetup 22 May 14: Umbraco and Amazon
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
 
How to test if Cloudflare is running live for your website
How to test if Cloudflare is running live for your websiteHow to test if Cloudflare is running live for your website
How to test if Cloudflare is running live for your website
 
M7 - Manual
M7 - ManualM7 - Manual
M7 - Manual
 
Aws overview part 3(databases, dns and management services)
Aws overview   part 3(databases, dns and management services)Aws overview   part 3(databases, dns and management services)
Aws overview part 3(databases, dns and management services)
 
SFScon 22 - Dashamir Hoxha - Manage your own DNS.pdf
SFScon 22 - Dashamir Hoxha - Manage your own DNS.pdfSFScon 22 - Dashamir Hoxha - Manage your own DNS.pdf
SFScon 22 - Dashamir Hoxha - Manage your own DNS.pdf
 
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
 
Route 53 for Multi-Account Environments
Route 53 for Multi-Account EnvironmentsRoute 53 for Multi-Account Environments
Route 53 for Multi-Account Environments
 
DevOps for the Enterprise: Virtual Office Hours
DevOps for the Enterprise: Virtual Office HoursDevOps for the Enterprise: Virtual Office Hours
DevOps for the Enterprise: Virtual Office Hours
 
Masterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpacesMasterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpaces
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic Server
 
AWS CodeDeploy
AWS CodeDeploy AWS CodeDeploy
AWS CodeDeploy
 
VAaaS
VAaaSVAaaS
VAaaS
 
Designing High Availability for HashiCorp Vault in AWS
Designing High Availability for HashiCorp Vault in AWSDesigning High Availability for HashiCorp Vault in AWS
Designing High Availability for HashiCorp Vault in AWS
 
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2
 
70 533 study material
70 533 study material70 533 study material
70 533 study material
 
Practical solutions for connections administrators
Practical solutions for connections administratorsPractical solutions for connections administrators
Practical solutions for connections administrators
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 

Configuring vpc-dns 1479227864 (2)

  • 2. Related Courses AWS Certified Solutions Architect - Professional Related Videos Network Technologies Working with VPC DNS Need Help? Linux Academy Community ... and you can always send in a support ticket on our website to talk to an instructor!Lab Connection Information • Labs may take up to five minutes to build • Access to an AWS Console is provided on the Live! Lab page, along with your login credentials • Ensure you are using the N. Virginia region • Labs will automatically end once the alloted amount of time finishes Contents Create an Instance 1 Configure Internal DNS 1 VPC Settings 1 Set Up DNS 2 Create an Internal Record Set 2 Using On-Premise DNS 3 Set All Instances to Use On-Premise DNS 3
  • 3. Configuring VPC DNS Linux Academy - 1 - Route 53 provides internal DNS to AWS VPCs. AWS also permits outside DNS for companies expanding out to their cloud systems. This lab reviews both way of managing DNS through AWS. Log in to the AWS console using the credentials provided on the Live! Lab page. Create an Instance Navigate to the EC2 Dashboard and select the Instances page. Here we can see an already-existing instance, On Premise DNS. This instance is to be used for the on-premise DNS configuration; we still need to create a second instance for the lab. Press Launch Instance. Select Amazon Linux AMI, then t2.micro as the Instance Type. Press Next: Configure Instance Details. Ensure that the Network address is set to (10.0.0.0/16), and the Subnets available are (10.0.0.0/24) and (10.0.2.0/24). Select Enable for the Auto-assign Public IP option. Press Next: Add Storage, then Next: Tag Instance. We do not need to adjust the storage settings. For Tag Instance, use client as the Value, then press Next: Configure Security Group. Choose the Select an existing security group radio button, and select the one that contains your Linux Academy username. Press Review and Launch. From here, review your selections if needed, then select Launch. A pop-up box appears, asking for a key pair. Choose Create a new key pair from the drop-down list. We choose to name ours dnslab. Download the key pair, then select Launch Instances. To ensure the instance works, open up your terminal, and navigate to the folder that contains the key pair download. Update the permissions: chmod 400 dnslab.pem Return to the AWS console. Select the client instance, then click Connect. Connect to the instance using the provided example. Be aware it may take multiple minutes for the server to be ready for use. Configure Internal DNS VPC Settings From the top Services menu, navigate to Networking, then VPC (Virtual Private Cloud). Select Your VPC from the menu. We need to confirm that our VPC is properly configured to work with DNS — this means that DNS and
  • 4. Configuring VPC DNS Linux Academy - 2 - hostname both need to be enabled. Check the available VPC and go to Actions, Edit DNS Resolution. Ensure is it set to Yes. Do the same for Edit DNS Hostnames. Set Up DNS Navigate to Route 53, also located under Networking. You may receive a permissions error, but this can be ignored. From there, move to Hosted zones and select Create Hosted Zone. In actual practice, the domain name used would be related to the organization. In this lab, we instead use the domain awscloud.local, which implies this is an internal zone. Set Private Hosted Zone for Amazon VPC for Type, and select the VPC in the US East (N. Virginia) region for VPC ID. To confirm this is correct, check the VPC name against the VPC ID in the VPC Dashboard. Select Create. Create an Internal Record Set From the dashboard of the hosted zone, select Create Record Set. Set the Name to client. Next, set the Value to the private IP of your client instance, which can be found under the EC2 Dashboard, by clicking on Instances and selecting the client instance. Press Create. Now, switch to your terminal. Ensure you are logged in to your client instance. Run: nslookup client.awscloud.local It should output results similar to: Server: 10.0.0.2 Address: 10.0.0.2#53 Non-authoritative answer: Name: client.awscloud.local Address: 10.0.0.72 The IP in the address field should be the client instance’s private IP that was added in the Route 53 client. awscloud.local rules. Review the /etc/resolv.conf file: sudo cat /etc/resolv.conf This outputs the default search settings and nameserver information. If secondary DNS records were added, it would failover to the second, should AWS’s DNS cease to work.
  • 5. Configuring VPC DNS Linux Academy - 3 - Using On-Premise DNS We want to allow our AWS applications to reference servers and instances in the “On Premise DNS” server. However, this cannot be done with Route 53, since those must originate within the AWS cloud. Connect to your client from your terminal and view /etc/resolv.conf: sudo cat /etc/resolv.conf From here we can see that we’re still looking atAmazon’s internal DNS.Any secondary servers added work as a failover, so if we wish to use our on-premise internal DNS, we need to replace our internal AWS DNS. Open /etc/resolv.conf and change the nameserver to match the on-premise private IP, which is 10.0.2.100. Save and exit. There is a DNS record located “on-premise” that we have available. To check that everything works, run: nslookup ns1.onpremise.local You should get a resolved return: Server: 10.0.2.100 Address: 10.0.2.100#53 Name: ns1.onpremise.local Address: 10.0.2.100 Should we ping ns1.onpremise.local, we notice that it is returning the address. However, should we ping ns1 itself, it fails, because, by default, it assumes we are trying to run ping ns1. ec2.local. This can be changed by altering the /etc/resolv.conf file: ; generated by /sbin/dhclient-script search onpremise.local nameserver 10.0.2.100 We can now ping ns1. Set All Instances to Use On-Premise DNS We need not use Route 53 DNS at all. To only use on-premise DNS, navigate to your VPC dashboard and select DHCP Options Set. Click Create DCHP options set. Set the Name tag to on-premise and the Domain name to onpremise.local. For this example, the Domain name server should be set to our On Premise server’s private IP: 10.0.2.100. Press** Yes, Create**.
  • 6. Configuring VPC DNS Linux Academy - 4 - From the sidebar, choose Your VPCs. Select your VPC and select Edit DHCP Options Set from the Actions menu. Choose the one with the on-premise tag, and save. The changes have yet to take effect, and do not do so automatically. For them to do so, either type sudo reboot in the terminal or do it through the EC2 console. When the instance is newly-booted, return to your terminal and ping ns1.