What is DNS Resolution?

Learn what DNS resolution is, how it works, the types of DNS servers involved, and why it’s essential for internet connectivity.

What is DNS Resolution?

  • The Domain Name System (DNS) is a fundamental part of the internet’s infrastructure and takes on a role similar to that of the phone book. Just as you wouldn’t want to remember a long string of numbers off the top of your head to call a friend, DNS ensures that you don’t have to recall complicated numerical IP addresses to visit your favorite websites.

    DNS will quickly translate user-friendly domain names (such as www.example.com) into numerical IP addresses that computers use to identify each other on the network. When you enter a web address in your browser, the DNS springs into action. It will find the corresponding IP address, enabling your device to quickly and seamlessly connect to the desired website. This system simplifies navigating the internet, allowing us to use memorable names instead of complex numerical codes.

    DNS handles the heavy lifting of translating domain names into IP addresses, making the internet more accessible and easier to use. Without DNS, everyone would have to memorize and type long strings of numbers each time they wanted to visit a website, which would not only result in a terrible user experience but also make the internet far less practical than it is today.

  • DNS resolution, or DNS lookup, is the process of converting a domain name, such as www.example.com, or hostname into a machine-readable IP address, such as 192.168.1.1. The DNS process involves querying a series of DNS servers to find and return the correct IP address. This process ensures that when you enter a web address, your browser can connect to the intended website, email server, or online resource.

    The DNS resolution process starts with the root name servers and continues to the top-level domain (TLD) servers before finally reaching the authoritative name servers for the specific domain. Despite the many steps, DNS resolution is a fast process, with the average DNS lookup taking between 20 and 120 milliseconds. However, network issues, overloaded DNS servers, and other problems may lengthen DNS resolution times.

  • Think of DNS as a kind of GPS for the internet. When you type a website address into your web browser, you’re starting a series of conversations to find the correct destination. These conversations happen through different types of DNS queries. First, your operating system acts as a DNS client and asks a local recursive DNS resolver (usually provided by your internet service provider or a company such as Cloudflare) for the website’s IP address. This is a recursive query; it’s a request for a complete answer. The resolver then begins its work, and this is where recursive resolution begins.

    To get the answer, the resolver may first check its own DNS cache for a recently stored resource record. Each record includes a time to live (TTL), which determines how long the resolver can keep it in its cache. If the TTL has expired or the resolver doesn’t have the answer, it moves on to an iterative query. This is where the process gets interesting. The resolver doesn’t ask for a full answer; it only requests a referral. It will first ask a root server for a hint. The root server will direct it to the correct TLD server (such as the one for .com or .org). The resolver then sends an iterative query to the TLD server, which in turn points to the authoritative DNS server for the specific domain you’re searching for. The resolver sends one more iterative query to the authoritative server, which finally provides the IP address. The resolver then caches this information and sends the complete answer back to your browser. The entire process of how DNS resolution works, from your initial request to the final answer, is the journey of iterative resolution. A non-recursive query is when a client, such as the resolver, already has the IP address in its cache and simply needs to confirm it with the authoritative server, making a quick check to ensure the record is still valid. It’s an important part of how the DNS system efficiently finds what you’re looking for.

  • The DNS resolution process involves several types of servers working together to translate domain names into IP addresses. All DNS servers fall into one of four categories:

    • Recursive resolvers: Recursive resolvers act as intermediaries that receive DNS queries from end-user devices and perform the necessary lookups to resolve a domain name into an IP address. These resolvers are an essential part of the DNS infrastructure, as they handle the complex task of querying multiple DNS servers on behalf of the user to retrieve the correct IP address. After receiving a DNS query, a recursive resolver will check its local cache to see whether the domain requested by the user has recently been resolved. If so, the resolver will immediately return the IP address, speeding up the process, reducing the load on the broader DNS network, and ultimately improving efficiency. Recursive resolvers and their caching mechanism are particularly beneficial for frequently visited websites.
    • Root name servers: Root name servers are the first step in the DNS process. When a recursive resolver initiates a query to resolve a domain name, it will first reach out to the root name servers. While root name servers don’t hold specific information about individual domain names, they do have a critical directory of information about TLD servers. They will analyze the incoming domain’s extension and direct queries to the appropriate TLD name servers for further querying.
    • TLD name servers: TLD name servers manage the DNS information for top-level domains, such as .com, .org, .net, and country-specific extensions, such as .uk or .ca. These servers are responsible for maintaining the records that map specific top-level domains onto their respective authoritative name servers. Essentially, TLD name servers help guide the query further down the hierarchy. Thanks to TLD name servers, the recursive resolver can locate the authoritative name server and identify the correct IP address for the domain more quickly, resulting in a more efficient DNS system.
    • Authoritative name servers: Authoritative name servers are the next step in the DNS process and provide the final piece of the puzzle. These servers contain the actual DNS records for domains, including the IP addresses. They give the definitive answer to the recursive resolver and complete the DNS query by supplying the final IP address needed to reach the domain.

  • DNS resolution is important because it translates user-friendly domain names into machine-readable IP addresses, enabling us to access websites easily across a highly dynamic infrastructure. Without DNS resolution, users would need to remember and enter numerical IP addresses to visit websites, which would be overly complex and impractical. Additionally, efficient domain name resolution ensures quick and reliable access to online resources, enhancing overall user experience and supporting the smooth functioning of the internet.

    Beyond simplifying access to websites, DNS resolution plays a vital role in maintaining the internet's scalability and resilience. As the number of websites and online services continues to grow exponentially, DNS provides a structured and organized system that allows for seamless navigation across millions of domain names. This system is essential for the functionality of various internet services, such as email, online transactions, and cloud applications, which rely on accurate and timely DNS resolution to operate effectively.

  • The DNS resolution process can encounter a few issues that impact the efficiency and security of internet navigation and disrupt users’ ability to access websites or slow down their browsing experience. Here are some common problems and their fixes:

    • Latency issues: Slow DNS resolution can prolong website loading times, which could negatively impact the end-user experience and drive visitors away, potentially permanently. To fix this, you can implement DNS caching to store frequently accessed DNS records, reducing the need for repeated lookups and speeding up the resolution process. Additionally, using a DNS provider with geographically distributed servers can significantly reduce latency by ensuring that DNS queries are routed to the nearest server, thus reducing the distance data has to travel.
    • DNS spoofing and cache poisoning: Attackers can manipulate DNS records to redirect users to malicious sites. Users may unknowingly visit harmful websites where they may be exposed to phishing attacks, malware, or other security threats. Using DNS Security Extensions (DNSSEC) adds a layer of authentication to DNS responses, helping combat these risks by ensuring data integrity and authenticity.
    • DNS server downtime: If a DNS server goes down, domain resolution fails, causing website inaccessibility and disrupting users. By employing redundant DNS servers and failover mechanisms, you can help ensure continuous service availability, as this setup will automatically redirect DNS queries to another server if the primary server becomes unavailable. Using multiple DNS providers can also enhance reliability. By distributing the DNS load across different networks and infrastructures, you can minimize the chance of outages caused by localized issues.
    • Configuration errors: Misconfigured DNS settings can lead to resolution failures, which could prevent users from accessing websites or cause them to be directed to the wrong site. These errors can occur due to incorrect IP addresses, out-of-date records, or typos in DNS entries. Regularly auditing and monitoring DNS configurations can help you quickly identify and correct errors; automated tools can simplify the process. These tools can continuously scan DNS records for potential issues, enabling you to resolve configuration issues more quickly or avoid them in the first place.
    • DNS amplification attacks: Attackers exploit DNS servers to conduct large-scale distributed denial of service (DDoS) attacks by overwhelming the target with small queries that result in large responses from the server. These attacks can lead to significant disruptions and poor performance, which is why it’s important to configure DNS servers to prevent amplification by rate limiting (controlling how many requests a server will handle from a single source within a specific period) and restricting recursive queries to trusted users. Implementing security measures such as firewalls and intrusion detection systems can also help mitigate these attacks.
  • DNS resolution has certainly evolved beyond the basics, especially in today’s cloud and containerized environments. While the core principles remain, the scale and dynamic nature of these setups introduce some interesting twists. DNS services such as Amazon Route 53 use anycast routing to direct you to the nearest, most responsive DNS server, which can significantly improve DNS resolution times. This is very different from a traditional on-premises setup where your local DHCP server might assign a single, static DNS server address. In modern environments, a centralized authoritative DNS server is rarely just one physical device. Instead, it is usually a distributed, highly available service that manages the vast number of dynamic IPv4 and IPv6 addresses constantly being created and deleted. The DNS system is also crucial for service discovery. When one containerized microservice needs to communicate with another, it relies on DNS to locate it instead of using a hardcoded IP address. DNS is a vital part of the modern orchestration process, handling the continuous changes in hosts and their DNS records to keep everything connected and communicating. The core functionality—address resolution—remains the same, but it now operates at a scale and speed that traditional networks could not support. We use the same concepts, but with major enhancements to meet the needs of modern IT environments, including intelligent routing and load balancing to ensure requests reach the correct destination quickly and reliably.

Featured in this Resource
Like what you see? Try out the products.
SolarWinds Observability Self-Hosted

Visualize, observe, remediate, and automate your environment with a solution built to ensure availability and drive actionable insights.

Email Link To TrialFully functional for 30 days
SolarWinds Observability SaaS

Unify and extend visibility across the entire SaaS technology stack supporting your modern and custom web applications.

Start Free TrialFully functional for 30 days
NetFlow Traffic Analyzer

Real-time network utilization monitoring tool, NetFlow analyzer, and bandwidth monitoring software.

Email Link To TrialFully functional for 30 days

View More Resources

What Is Observability (o11y)?

Observability is the measurement of a system's internal state determined from its external outputs.

View IT Glossary

What Is an Observability Pipeline?

An observability pipeline, or a telemetry pipeline, is a system that helps gather, process, and send data from various sources to the right tools.

View IT Glossary

What is Network Troubleshooting? How to Fix Network Issues

Network troubleshooting is the process of measuring, identifying, and resolving network-related issues. It’s also defined as a logical process network engineers follow to improve the overall network operations.

View IT Glossary

What is Network Optimization?

Network optimization leverages a variety of strategies, tools, and programs to improve network performance.

View IT Glossary

What is DDI?

DDI is an abbreviated term that refers to the amalgamation of DNS, DHCP, and IP Address Management into a single service or solution.

View IT Glossary

What Is DHCP?

DHCP intelligently manages IP address allotment and renewal activities in a network.

View IT Glossary