Published: 12 March 2024
Contributors: Camilo Quiroz Vazquez
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.
The Enterprise Guide to AI and IT Automation offers an in-depth look at AI-powered IT automation, including why and how to use it, the issues blocking your efforts and how to get started.
Subscribe to the Think Newsletter
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.
IBM® NS1 Connect Managed DNS service delivers resilient, fast, authoritative DNS connections to prevent network outages, and keep your business online, all the time.
Optimize end-user experience and improve network resilience at a lower cost with IBM NS1 Connect GSLB, a new approach powered by DNS and real-time device performance data.
IBM Cloud® DNS Services offers public and private authoritative DNS services with fast response time, unparalleled redundancy and advanced security—managed through the IBM Cloud web interface or by API.
The Domain Name System, or DNS, is what makes it possible for users to connect to websites using internet domain names and searchable URLs rather than numerical Internet protocol addresses.
A Domain Name System (DNS) record is a set of instructions used to connect domain names with internet protocol (IP) addresses within DNS servers.
DNS servers translate the website domain names users search in web browsers into corresponding numerical IP addresses. This process is known as DNS resolution.
A primary DNS server is the first point of contact in query resolution and serves as the definitive source for information about a domain, storing original copies of all the domain's DNS records.
A DNS zone is a distinct logical entity within the domain namespace of the Domain Name System (DNS), delegated to an administrator, organization, or other legal entity responsible for managing it.
A CNAME record, or canonical name record, serves as an alias within the Domain Name System (DNS), redirecting one domain name to another.