The Domain Name System (DNS) protocol is a process that allows internet users to navigate the internet using hostnames instead of numeric IP addresses. DNS is like the phonebook of the internet; it simplifies the process of searching for specific websites through web browsers.
When a DNS client makes a DNS request using a hostname, such as www.example.com, a series of functions connect that request with the corresponding IP address. These functions provide the authentication of IP addresses (both IPv4 and IPv6) and make internet usage more accessible by translating customizable domain names into complex numerical addresses.
To complete these functions, DNS protocol relies on four types of DNS servers that, when functioning properly, make the process fast and secure. DNS servers use DNS records—records such as A records and CNAME records that contain information that guides the resolution process—to properly route DNS requests. These records are text-based files known as “zone files,” written in DNS syntax.
DNS resource records are stored on authoritative DNS servers also known as authoritative name servers. They contain information related to the domain, including how long a server will keep DNS records cached, a period known as time-to-live (TTL). These records enable the linking of domain and subdomains and the proper routing of emails, assist with DNS security and more.
Through the following process, DNS queries are resolved, and users are connected with the IP address of the web server hosting the site:
When a DNS server is unable to retrieve a complete answer, it sets off an iterative DNS query. Servers will continue to bounce the request through different servers until an IP address is found or a time out or error is reached.
The DNS namespace governs public DNS hostnames on the internet. The namespace creates a hierarchy that is structured like a tree, and each node in the tree has a textual label and DNS resource records that describe the domain. The domain name is made up of the label along with the label of its parent notes (these sections are separated by a dot, as in “example.com”), and is separated into zones. Each zone is delegated to a specific legal entity for administration and management. This structure allows for websites to be given unique names.
The domain name creates a hierarchical structure with different levels. Domain names consist of one or more parts called labels and each part is separated by a dot. A label can contain up to 63 characters.
Example: forum.support.example.com
In the example above, “.com” represent the top-level domain, “example” represents the domain name, “support” is a subdomain under “example” and “forum” is a subdomain under “support.”
A recursive DNS server, also known as a DNS recursor or recursive DNS resolver, communicates with other DNS servers to locate and return an IP address. This server receives a DNS query and can connect a user to the desired site using cached data. If site data is not cached, it sends a follow-up request to the authoritative name servers.
The authoritative name server is usually the final stop in the process of resolving a DNS query. This server contains the resource records for all domains in that zone. On occasion, authoritative name servers must send a request to another name server to find information about specific subdomains.
DNS messages consist of queries and replies and contain the following fields:
DNS uses the User Datagram Protocol to answer DNS queries due to its speed and low overhead. For DNS responses that are larger than 512 bytes, or if a server is managing zone transfers (the transferring of DNS records from primary to secondary DNS servers) or similar tasks, it uses the Transmission Control Protocol (TCP). TCP enables data integrity checks and breaks a message down into smaller packets to help ensure it reaches its destination as quickly as possible.
DNS master files are stored on DNS name servers. They are text files that define DNS information for a single DNS zone such as:
On a small scale, a user should not even notice this process is happening. On an enterprise scale, understanding how DNS works is important for maintaining both internal and external web services and selecting a managed DNS solution.
Use cases for managed DNS solutions include:
A content delivery network (CDN) is global network of servers that helps improve delivery performance and reduce latency. A multi CDN system allows for dynamic use of several CDNs to provide the best service.
When servers are overloaded, they can fail or slow down performance. Load balancing is the process of distributing network traffic across various servers, and GSLB distributes workloads efficiently across data centers around the world.
Managed DNS solutions facilitate automated routing based on the geographic location of end users, speeding network and application performance.
Traffic steering gives organizations the power to optimize connections to applications, services and content based on real-user monitoring (RUM) data, load and network conditions.
Discover how separating DNS from your CDN can lead to improved performance, cost savings, and resilience. Learn why managing DNS independently allows more control over traffic steering, performance monitoring, and resilience across multiple CDN providers.
Selecting the right DNS provider is crucial for managing traffic, ensuring resilience, and optimizing performance. Discover the four essential factors you must consider, from risk profile and developer needs to managing multiple CDNs and performance requirements.
Learn how Managed DNS enhances performance and security, reduces latency, and streamlines your operations. Discover the differences between managed and self-managed DNS, and explore the key benefits for your business.
Explore the benefits and challenges of self-hosting authoritative DNS for large enterprises. Learn about the hidden complexities of self-hosting, and why managed DNS solutions might be the better choice for scalability, resilience, and cost-efficiency.
Get started with IBM Cloud domain-name system services that offer fast response time, unparalleled redundancy and advanced security.
Automate and optimize network operations, including DNS management, to improve efficiency and accelerate service delivery across your network.
Cloud networking solutions from IBM provide high-performing connectivity to power your apps and business.