[email protected]Support 24/7 · Billing 09:00 – 00:00LinkedInXFacebook
NexonHost
Netherlands Dedicated ServersAmsterdam · Equinix AM6Germany Dedicated ServersFrankfurt · Equinix FR4Romania Dedicated ServersBucharest · VoxilityAustria Dedicated ServersVienna · Interxion VIEBulgaria Dedicated ServersSofia · TelepointFrance Dedicated ServersParis · Interxion PAR — Marseille · Digital Realty MRS3Ireland Dedicated ServersDublin · Equinix DB2Italy Dedicated ServersMilan · Irideos AvalonPoland Dedicated ServersWarsawSpain Dedicated ServersMadrid · Equinix MD2United States Dedicated ServersAshburn · Equinix DC
All articles
Getting startedAugust 1, 2023

How to understand what is a DNS server

What is a DNS server?

The Domain Name System (DNS) is the phonebook of the Internet. When users type domain names such as ‘Google ’ or ‘The New York Times – Breaking News, US News, World News and Videos ’ into web browsers, DNS is responsible for finding the correct IP address for those sites. Browsers then use those addresses to communicate with origin servers or CDN edge servers to access website information. This all happens thanks to DNS servers: machines dedicated to answering DNS queries.

What is a server?

A server is a device or program dedicated to providing services to other programs, referred to as ‘clients’. DNS clients, which are built into most modern desktop and mobile operating systems, enable web browsers to interact with DNS servers. For more, see The Client-Server Model.

How do DNS servers resolve a DNS query?

In a typical DNS query without any caching, there are four servers that work together to deliver an IP address to the client: recursive resolvers, root nameservers, TLD nameservers, and authoritative nameservers.

The DNS recursor (also referred to as the DNS resolver) is a server that receives the query from the DNS client, and then interacts with other DNS servers to hunt down the correct IP. Once the resolver receives the request from the client, the resolver then actually behaves as a client itself, querying the other three types of DNS servers in search of the right IP.

First the resolver queries the root nameserver. The root server is the first step in translating (resolving) human-readable domain names into IP addresses. The root server then responds to the resolver with the address of a top-level domain (TLD) DNS server (such as .com or .net) that stores the information for its domains.

Next the resolver queries the TLD server. The TLD server responds with the IP address of the domain’s authoritative nameserver. The recursor then queries the authoritative nameserver, which will respond with the IP address of the origin server.

The resolver will finally pass the origin server IP address back to the client. Using this IP address, the client can then initiate a query directly to the origin server, and the origin server will respond by sending website data that can be interpreted and displayed by the web browser.

What is DNS caching?

In addition to the process outlined above, recursive resolvers can also resolve DNS queries using cached data. After retrieving the correct IP address for a given website, the resolver will then store that information in its cache for a limited amount of time. During this time period, if any other clients send requests for that domain name, the resolver can skip the typical DNS lookup process and simply respond to the client with the IP address saved in the cache.

Once the caching time limit expires, the resolver must retrieve the IP address again, creating a new entry in its cache. This time limit, referred to as the time-to-live (TTL) is set explicitly in the DNS records for each site. Typically the TTL is in the 24-48 hour range. A TTL is necessary because web servers occasionally change their IP addresses, so resolvers cannot serve the same IP from the cache indefinitely.

What happens when DNS servers fail?

DNS servers can fail for multiple reasons, such as power outages, cyber attacks, and hardware malfunctions. In the early days of the Internet, DNS server outages could have a relatively large impact. Thankfully, today there is a lot of redundancy built into DNS. For example, there are many instances of the root DNS servers and TLD nameservers, and most ISPs have backup recursive resolvers for their users. (Individual users can also use public DNS resolvers) Most popular websites also have multiple instances of their authoritative nameservers.

In the case of a major DNS server outage, some users may experience delays due to the amount of requests being handled by backup servers, but it would take a DNS outage of very large proportions to make a significant portion of the Internet unavailable. (This actually happened in 2016 when DNS provider Dyn experienced one of the biggest DDoS attacks in history).

DNS security

When DNS servers are compromised or otherwise fail, it can have a hugely negative impact on users, businesses, and the Internet as a whole. Like anything connected to the Internet, DNS servers are vulnerable to a range of attacks, as well as impersonation by malicious parties. DNS security measures like DNSSEC help prevent such attacks, keeping both servers and the users who rely on them secure.

Keep reading
How to Edit Your Hosts File on Linux, Windows, and macOS.
September 7, 2023

How to Edit Your Hosts File on Linux, Windows, and macOS.

How To Edit Your Hosts File On Linux, Windows, And MacOS. In this article, we’ll provide instructions about how to modify the hosts file on Linux, macOS, and Windows. The hosts file is used to map domain names (hostnames) to IP addresses. It is a plain-text file used by all operating systems…

Read article
How to Configure Automatic Updates with yum-cron on CentOS 7.
September 7, 2023

How to Configure Automatic Updates with yum-cron on CentOS 7.

How To Configure Automatic Updates With Yum-Cron On CentOS 7. In this tutorial, we will go through the process of configuring automatic updates on CentOS 7. The same instructions apply for CentOS 6. If you manage multiple CentOS machines, manually updating the system packages sep be time-consuming.

Read article
How to generate SSH Keys on Windows with PuTTYgen.
September 7, 2023

How to generate SSH Keys on Windows with PuTTYgen.

How To Generate SSH Keys On Windows With PuTTYgen. This tutorial explains how to generate SSH keys on Windows with PuTTYgen. We will also show you how to set up an SSH key-based authentication and connect to your remote Linux servers without entering a password. The two most popular mechanisms are…

Read article
Get in Touch

Together, Let’s Build a Faster, Safer Internet.

Build scalable infrastructure with NexonHost — high-performance dedicated servers, VPS hosting, cloud hosting, and DDoS protection across Europe.

Get Started →Contact Us
[email protected]Support 24/7 · Billing 09:00 – 00:00