The Wayback Machine - https://web.archive.org/web/20240910041225/https://www.geeksforgeeks.org/amazon-web-services-working-with-dns/
Open In App

Amazon Web Services – Working with DNS

Last Updated : 28 Mar, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In this article, we will look into how DNS works, and how you can troubleshoot partial DNS failures when using AWS services. This can be done using available online tools and the command-line interface.

Let’s start with a brief introduction of how DNS works. The Domain Name System is built using a distributed architecture. When the host needs to resolve the IP address of a domain name, the host device hands over this process to a DNS server. The DNS server finds the IP address of the domain name and returns it back to the host.

Let us walk through the process of a simple DNS query. When a customer is trying to resolve the DNS record Amazon.com this happens.

Image

  • First, the host sends the requested DNS query to the local DNS server.
  • Second, the DNS server which is pre-configured with the list of root name servers randomly selects one of these route name servers and sends an interactive DNS query for the record Amazon.com.
  • Third, the root name server responds with a list of authoritative name servers for the dot com zone as well as the IP addresses.
  • Fourth the DNS server randomly selects one of the main returned in step three and sends another DNS query for the record Amazon.com.
  • Fifth the top-level domain name server responds with a list of name servers that are authoritative for the domain Amazon.com.
  • Sixth the DNS server randomly selects one of the authoritative name servers returned in step five and sends another DNS query for Amazon.com.
  • Seventh since the name server receiving the query in step six is authoritative for the domain Amazon.com the name server responds to the DNS server with the value of the record Amazon.com which is an IP address.
  • Finally, the DNS server sends this DNS response to the host.

Let us walk through the process of troubleshooting common DNS issues. For example, a customer just transferred the domain “awskcvideos.com” to Route53 and cannot resolve records in their hosted zone after completing the transfer. For DNS records to resolve properly after transferring or registering a domain on Route53, the Route53 name servers on your hosted zone need to match the name servers on the Registered Domain section on the Route53 console. Here’s how you verify this.

Step 1: After you sign an AWS management console, navigate to the Amazon Route53 console.

Image

Step 2: In the navigation panel, choose Registered Domains. 

Image

Step 3: Click the desired domain name.

Step 4:Take note of the four nameservers.

Step 5: In the navigation panel choose the hosted zone and click the domain name.

Image

Step 6: Take note of the four name servers in the hosted zone and verify the name servers listed in both sections marked.

Image

In this case, the customer with the domain “awskcvideos.com” will not be able to resolve any record in their hosted zone. The solution is to update the nameservers in the registered domain section with the nameservers in their Route53 hosted zone.

Other common DNS errors include SERVFAIL and REFUSED. A SERVFAIL DNS response indicates the DNS server was unable to process this query due to a problem with the authoritative nameserver. A SERVFAIL response is also a common response for certain DNSSEC validations that are unsuccessful. To fix this, verify the DNS service provider supports DNSSEC and the authoritative nameserver on the Registered Domain section are reachable and valid for the domain. A REFUSED response indicates the nameserver is not authoritative for that domain, meaning it does not have the records for that domain in its zone file. To fix this, verify the correct nameservers in the hosted zone updated on the Registered Domain section of the Route53 console.



Similar Reads

Machine Learing (ML) Services Offered By Amazon Web Services (AWS)
In today's rapidly evolving technologies, harnessing the power of cloud computing has become imperative for businesses striving to stay ahead. Among the many cloud computing platforms, AWS is the most used cloud computing platform. In this guide, I will make sure that you will understand what is AWS and why cloud computing services are important to
10 min read
Amazon Web Services - Working with Third Party Data in Redshift
Amazon Redshift is a data warehouse product that forms a large part of the cloud-computing platform Amazon Web Services. In this article, we will look into the process of quickly moving data from AWS Data Exchange in Amazon S3 into a Warehouse. Implementation: Follow the below steps to move data from Amazon S3 to An amazon warehouse using Redshift:
2 min read
Amazon Web Services - Copy an Amazon Redshift Cluster to Different AWS Account
In this article, we will look into how to copy an Amazon Redshift cluster from one account to a different account. Usually, users perform this operation from a production account to a quality account but you can use the steps to move a cluster from one account to another account in the same region. To do so follow the below steps: Step 1: In the ac
3 min read
Amazon Web Services - Configuring Amazon S3 Event Notifications
The Amazon S3 notification feature enables you to receive notifications when a certain event occurs inside your bucket. To get notifications, first, add a notification configuration that reads the event you want Amazon S3 to publish and the destinations where Amazon S3 will send the notifications. This configuration is stored in the notification su
5 min read
Amazon Web Services - Amazon S3 Notifications to SNS
In this article, we will see how the Amazon S3 bucket publishes notifications to SNS topics on object creation events. An object that creates an event is of four types. They are Put, Post, Copy, Multipart Upload, Remove, Replicate and Restore. Thus, whenever any of the event occur in our S3 bucket, it will publish a notification to a topic and the
3 min read
Amazon Web Services - Introduction to Amazon CloudWatch Synthetics
In this article, we will get an introduction to Amazon Cloudwatch Synthetics. With this feature, you can create different kinds of Canaries to continually verify your user experience even when you don't have traffic, monitor and test for unusual behavior, and trace issues to their source for faster resolution. Let's start by navigating to CloudWatc
3 min read
Amazon Web Services - Resolving Server Authorization Error in Amazon EKS API Server
In this article, we will look into how users who get the error you must be logged in to the server unauthorized when connecting to an Amazon Elastic Kubernetes Service API server. Here we have an Amazon EKS cluster that was created by a user initially. Only the creator of the Amazon EKS cluster has system masters permission to access and communicat
3 min read
Amazon Web Services - Upload Data to Amazon FinSpace
In this article, we will look into how you can upload data to Amazon FinSpace. Adding data to FinSpace is easy so long as you are a member of the group with the Create datasets permission. To do so follow the below steps: Step 1: From the home page choose ADD DATA. Step 2: Files can be simply dropped into the red box. Step 3: After dropping the fil
2 min read
Amazon Web Services - Introduction to Amazon FSx
In this article, we will look into Amazon's fully managed native File Server service called Amazon FSx, and it is integrated with the rest of AWS. So what does fully managed mean? It means that you no longer need to manage the hardware or the software to provide File server services to your users. AWS takes care of managing the hardware in terms of
5 min read
Amazon Web Services - Creating an Amazon Mechanical Turk Account
In this article, we are going to give you a run-through of how to go about signing up for an Amazon Mechanical Turk worker account, in order to get started working on tasks and earning money. To create the Mechanical Turk Account follow the below steps: Step 1: First, you'll need to access the Mechanical Turk website by going to mturk.com. This pag
2 min read
Amazon Web Services - Correctly Accessing CloudFront from Amazon S3
Sometimes users of Amazon Cloudfront get a 403 Access Denied error when using an Amazon S3 website endpoint as an origin in Amazon CloudFront distribution. So, in this article, we will work through resolving this error. To resolve the Access Denied Error follow the below steps: Step 1: After signing in to the AWS management console navigate to Amaz
2 min read
Amazon Web Services - Resolving Domain Pending Verification Status in Amazon SES
In this article, we are going to look into how to resolve pending verification for your domain in Amazon Simple Email Service(SES) by recreation. This procedure resolves the problem that occurs when the domain.txt record was initially defined incorrectly and then was correct after it later and as a result the verification status is still shown as p
2 min read
Amazon Web Services - Introduction to Amazon EKS
Amazon Elastic Kubernetes Service(EKS), is a fully managed service that you can use to run Kubernetes on Amazon Web Service. Kubernetes is open-source software that enables you to install and manage applications at a high scale. Its characteristics are: Availability: In order to ensure high availability Kubernetes executes and scales itself to vari
2 min read
Amazon Web Services - Auto Scaling Amazon EC2
Scalability refers to the capacity of a software solution to manage rising workloads. In simple terms, it is the ability of a system to readily add extra processing resources to handle the increased loads. Scaling Amazon EC2 means you start with the resources you require at the time of starting your service and build your architecture to automatica
13 min read
Amazon Web Services - Creating an Amazon Machine Image(AMI)
In this tutorial, we'll go through in great detail how to create an Amazon Machine Image on AWS. An operating system, programmes, and configuration settings are all part of an Amazon Machine Image (AMI), which is a template for software configuration. You must choose an AMI to act as the instance's foundation when creating it in Amazon EC2. You can
6 min read
Amazon Web Services - Introduction to Amazon Aurora
A Cloud database is a database service fabricated and accessed through a cloud platform. It serves a considerable lot of indistinguishable functions as a conventional database with the additional adaptability of cloud computing. Users install the software on a cloud framework to implement the database. Amazon AuroraThe Amazon Aurora is a relational
6 min read
Amazon Web Services - Introduction to Amazon Lightsail
Amazon Light is an AWS service that provides the a gateway for simplified cloud hosting helping the AWS users. It act as a user-friendly cloud platform that is designed for easy hosting and management of virtual private servers (VPS). With the lightsail service users can quickly develop and manage the VPS instances with options for various operatin
9 min read
Amazon Web Services - Using Single SSH Key For all AWS Regions
Secure Shell also known as SSH is a cryptographic network protocol that helps secure network services over an unsecured network. It securely helps users to log in to a server with SSH than using a password alone. SSH keys are nearly impossible to decipher by brute force alone unlike passwords. In this article, we are going to look into how users ca
2 min read
Amazon Web Services - Target Network with a Client VPN Endpoint
In this article we are going to look into how you can associate a target network with an AWS Client VPN Endpoint. To do so follow the below steps: Step 1: After logging in to the AWS management console navigate to the Amazon Virtual Private Cloud(VPC) console. Step 2: In the navigation pane choose Client VPN endpoints and select the Client VPN endp
2 min read
Amazon Web Services - Introduction to Elastic Transcoder Service
Amazon Elastic Transcoder is a cloud-based media transcoding service. It is intended to be a highly scalable, simple-to-use, and cost-effective way for developers and organizations to convert their media files from their original format into versions that can be played on devices such as smartphones, tablets, and Computers. To be able to use the se
6 min read
Amazon Web Services - Data Pipelines
AWS is A Amazon Web Services, Inc. is A subordinate of Amazon which provides user cloud computing programs and APIs to independent companies, organizations,s, and government departments. This cloud computing web services provider provides several primary abstract technical infrastructure and appropriate computing building blocks and tools. This AWS
4 min read
Identity and Access Management (IAM) in Amazon Web Services (AWS)
Pre-requisite: AWS Identity and Access Management (IAM) manages Amazon Web Services (AWS) users and their access to AWS accounts and services. It controls the level of access a user can have over an AWS account & set users, grant permission, and allows a user to use different features of an AWS account. Identity and access management is mainly
5 min read
Amazon Web Services - Checking VPN Tunnel Status
In this article, we will look into what to check if traffic is not passing over your VPN. These steps are going to be different depending on whether you're using a static VPN or a BGP VPN. Follow the below steps to check the status of your VPN: Step 1: First thing you want to do is sign into your AWS console. Once you're on the service page scroll
2 min read
Amazon Web Services - Restricting S3 Access Only From CloudFront
In this article, we will look into how to restrict access to Simple Storage Service (S3) from CloudFront only. When developers are using S3 REST API endpoint as the origin to CloudFront, they can restrict access to S3 from CloudFront only by setting up the Origin Access Identity(OAI). This is a special CloudFront user, which they will associate wit
2 min read
Amazon Web Services - Deleting Network Load Balancer
The AWS Network Load Balancer is used for routing the connections to other active microservices, containers, or instances of Amazon EC2 from the Amazon Virtual Private Cloud(VPC). These mappings (connections) are based on the IP protocol data. It operates on the connection level (Layer 4), for both TCP and UDP connections. In this article, we will
3 min read
Amazon Web Services - Understanding Unregistered Function Error in Athena
In this article, we will look into the process of checking the functions that are available in amazon Athena and how to use them in Athena. There are many functions that can be used with select operations in our Athena. As a good practice before using it, we better check if the function is supported and present with the restore version that Athena
2 min read
Amazon Web Services - Changing the Elastic Block Store Encryption Key
In this article, we will look into the process of changing the encryption key used by an Amazon Elastic Block Store(EBS) volume. Before we begin, it is important to note that the encryption key for EBS volumes cannot be changed once generated. But there is a workaround for it. In this article, we will be discussing the same. To do so follow the bel
2 min read
Amazon Web Services - Limit Privileges of IAM user in RDS instance
Amazon RDS or Amazon Relational Database System is a highly scalable, secure, compact, and cost-efficient relational database in the cloud offered by AWS. In this article, we are going to look into how to limit access of AWS IAM users to an Amazon RDS(Relational Database Service) instance. Then we will explore how to give the least privileges requi
2 min read
Amazon Web Services - Resolving 403 Forbidden Error When Connecting to API from VPC through API Gateway
The Amazon API Gateway is used to create scalable APIs. It can perform additional functionalities like publishing the API, monitoring and maintaining the API. These can also be used to develop RESTful APIs and WebSocket APIs which can be used for real-time two-way communication between the client and the server. In simpler words we can say that, th
3 min read
Amazon Web Services - Cost and Usage Report
In this article, we are going to set up AWS Cost and Usage reports. AWS Cost and Usage Reports track your AWS usage and provide estimated charges associated with your account. The AWS Cost and usage report contain the most encyclopedic set of cost and usage data available. You can use cost and usage reports to get your AWS billing data in the form
4 min read