How Does DNS Work

Home » Help » Hosting » How Does DNS Work

DNS, short for Domain Name System makes possible the communication between humans and internet devices. In short, DNS translates the human-readable domain names to machine-readable IP addresses, so computers understand what exactly an Internet user searches for on the Web and deliver it.

Oftentimes called the phonebook of the Internet, DNS, along with ICANN, the Internet Corporation for Assigned Names and Numbers, is the cornerstone on which the contemporary Internet is based.

If you are not sure what domain names and IP addresses are, then have a look at our comprehensive articles explaining the terms thoroughly:

 

Table of Contents:

 

What is DNS

When browsing the web, people oftentimes use a website’s domain name to open it – for example, they type in “AwardSpace” or “AwardSpace.com”. However, such words, or phrases do not make sense to computer devices such as laptops, smartphones, and servers.

Instead, internet devices use IP addresses to locate web resources and deliver them to users. Smartphones, laptops, tablets, servers, and others communicate with each other via special strings of symbols, called IP addresses. These IP addresses are unique for each device and for each type of information stored on these devices.

The Domain Name System makes sure to allocate a given domain name with a corresponding IP address, so that every time you type in a registered domain name in the search engine, the right website loads up.

When you type in “AwardSpace” or “AwardSpace.com”, this query is sent to a DNS server, which checks which IP address matches this particular domain name, and shows it to the requesting web browser. Once the browser acquires the IP address behind this particular domain name, it searches the Web for it acquires the web resource (in this example the AwardSpace website’s IP address and its content) and delivers it back to you.

In short, DNS servers contain the public IP addresses associated with the domain names of those websites and tell machines which domain name corresponds to which IP address.

By adopting this technology, the Internet becomes more accessible to people, as DNS dismisses the need to remember and work with IP addresses.

 

How Does DNS Work

How does DNS work

When you type in a domain name, such as “YouTube.com” in your web browser, a complex process of data exchange begins.

The prompt that you entered into your web browser is known as a DNS request.

Once a DNS request is made, your web browser will first check out whether there are any already stored DNS records locally on your computer. A DNS record is an already-established connection between a given domain name and a corresponding IP address.

If your browser finds any match among the DNS records, it will use these to locate the IP address that corresponds to your DNS request and therefore fetch you back the web resource located at that IP address (in our example, the YouTube.com website will be opened).

However, if there are no DNS records stored locally, more actions will take place.

If your web browser can’t find any matching DNS records and therefore can’t fetch the requested website, it would then connect to a so-called DNS resolver.

DNS Resolver

The DNS resolver, also known as recursive resolver, is the main intermediary between your computer and other DNS servers. The purpose of the recursive resolver is to send forward the request to other DNS servers to find the matching IP of the requested domain name via the DNS request.

When the DNS resolver receives a request, it first scans its own system (cached files) to find a matching IP address to the requested domain name and if there’s a match, it sends it back to the web browser, which then uses it to fetch you the requested website (in our case – Youtube.com).

However, if the DNS resolver doesn’t contain any matches within its cached files, it sends a request to the next DNS server in the system – the so-called root nameserver.

 

Root Nameserver

The nameserver, know also as the root DNS server, is a special kind of server. It doesn’t contain any matching information about the request, but it gives directions to where the matching IP address can be found.

Once a request to the root nameserver is made, it identifies the top-level domain of the requested domain name and then it connects back to the recursive resolver to give instructions on where the matching IP address of the DNS request can be found.

The instructions contain information about which TLD nameserver should be reached.

Read also: The Difference Between Domain Hosting and Domain Transfer

 

TLD Nameserver

The TLD Nameserver is a DNS server that stores and manages information about the top-level domains (TLDs) of domains. A Top-Level Domain is the part of each domain name that stays at its far right. Examples include .com, .org, .net.

Once a request to the TLD nameserver is made, it analyzes what type of TLD the DNS request contains and redirects the DNS recursive resolver to the TLD nameserver that contains this TLD extension, along with the requested domain name.

In short, if the DNS request contains “YouTube.com”, the TLD nameserver will identify the TLD of this request (in this case, it would state that the TLD is “.com”) and would then tell the DNS recursive resolver which TLD nameserver contains the IP address that matches this particular domain name with this particular TLD.

 

Authoritative Nameserver

The Authoritative nameserver, or authoritative DNS server, is the final destination in the entire DNS resolution process.

This server stores all information about the domain name you requested via the DNS record, and to which IP address it is connected.

Once a request to the authoritative nameserver is made, it obtains the IP address associated with the domain name you entered in your web browser and sends it back you your computer, so you can open the requested website (in our example, this was YouTube.com).

Once the authoritative DNS server sends back the associated IP address, it performs DNS cachе, storing information about this requested domain name and its corresponding IP address to your computer. This step is important, as it allows your browser to load the website faster, should you request the same domain name again.

 

Conclusion

DNS works via a set of servers, each responsible for acquiring the IP address of the domain name that you have entered in your web browser. The process is comprehensive, however, it only takes a few seconds to be fully completed.

Was this post helpful?

i

Relevant tags:

Connect

Latest posts:

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...

How to Install MediaWiki Extensions

Now that you have installed MediaWiki and learned how to log in to the CMS, it is time to extend MediaWiki's functionality via extensions. MediaWiki extensions are sets of files that add various types of functionality to your MediaWiki website. You can use extensions...

How to Log In to MediaWiki

After you install MediaWiki, it is time to log in to the platform, so you can start working on your new MediaWiki website. To log in, you must open the MediaWiki login page and enter your credentials. Doing so will open the platform’s admin panel. In the following...

How to Install MediaWiki

You can quickly install MediaWiki on any of the AwardSpace web hosting plans. This includes our free web hosting, shared hosting, as well as advanced services such as semi-dedicated hosting and VPS hosting. You can install MediaWiki in a matter of minutes, whichever...



Create a website for free!


Free forever

Our Support Team is Here to Help

 

If you need any questions answered, don't hesitate and contact us. Click the button below and follow the instructions. You can expect an answer within an hour.

 

Contact AwardSpace

 

iNewest knowledge base articles

How to Install a MediaWiki Skin

In MediaWiki, skins determine the visual appearance of your wiki website. Skins define how content is presented to users and include such settings for the overall website layout, typography, color scheme, and more. By default, when you install MediaWiki, the platform...

How to Create a Page in MediaWiki

Creating pages in MediaWiki is а core feature that allows you to add content to your MediaWiki website. Whether you are adding details for a project, contributing to a knowledge base, or anything else, learning how to create a page in MediaWiki is crucial for your...

How to Install MediaWiki Extensions

Now that you have installed MediaWiki and learned how to log in to the CMS, it is time to extend MediaWiki's functionality via extensions. MediaWiki extensions are sets of files that add various types of functionality to your MediaWiki website. You can use extensions...

How to Log In to MediaWiki

After you install MediaWiki, it is time to log in to the platform, so you can start working on your new MediaWiki website. To log in, you must open the MediaWiki login page and enter your credentials. Doing so will open the platform’s admin panel. In the following...

How to Install MediaWiki

You can quickly install MediaWiki on any of the AwardSpace web hosting plans. This includes our free web hosting, shared hosting, as well as advanced services such as semi-dedicated hosting and VPS hosting. You can install MediaWiki in a matter of minutes, whichever...

How to Install an Elgg Theme

After you have installed Elgg core and logged in to the admin dashboard, you can search for themes that can help you customize your new website. Elgg themes are a set of files that help you customize the appearance of your website. Via themes, you can modify website...

Even more web tutorials

Check out our web hosting knowledge base and the WordPress tutorials to learn more, and be better prepared for your website creation and maintenance journey.