How DNS Works

OriNetworks
CERTIFIED EXPERT
Published:
Updated:
Introduction
-----------------------
DNS stands for Domain Naming System. DNS is a very complicated protocol and worldwide distributed database that translates our easy to remember words into actual addresses that computers can use to communicate. This article is not meant to go into all of the details of DNS, only give a high level overview.

Why does DNS exist?
-----------------------
In order to reach a server over the internet, an ip address is needed to contact the server. Instead of trying to remember addresses in number form such as 64.156.132.140, people more easily remember words such as experts-exchange.com

Who is responsible for DNS?
-----------------------
In short, DNS is owned by the world. No single organization is responsible for all of the DNS infrastructure.

How does it work?
-----------------------
Domain names consist of a top level domain, abbreviated by TLD (.com, .org, .net, .edu, etc.), a second level domain, and can contain one or more subdomains or hosts up to 127 levels.

1. The clients resolver sends the request to its assigned DNS server.

2. When a request is submitted to a DNS server, it goes through the following process.
a. Return the IP address for the domain if it knows it either by caching or if it is authoritative for the domain. If the server is authoritative for the domain and cannot find an address that matches the query, an authoritative answer is sent back to the client that the record does not exist.
b. If the address is unresolvable locally and the domain is not hosted by the server, the request is either forwarded to another DNS server or root hints are used to try to figure out the address.
c. Through the use of iterative queries, root hints are used to first resolve the TLD and try to get closer and closer to the requested domains authoritative server through the use of referrals to "best guess" servers.
d. The authoritative server responds with an answer.

3. If the address was found, the client can now establish communication with the returned address. If no address was found, an error is returned.
5
2,944 Views
OriNetworks
CERTIFIED EXPERT

Comments (3)

BrianIT Manager
CERTIFIED EXPERT

Commented:
I expected to see some more detail here.  This is very high level and doesn't go over a lot of the basic features of DNS.  This is more about how a DNS resolver works.
CERTIFIED EXPERT

Author

Commented:
Any specific suggestions? I wouldn't mind editing.

Commented:
I would like to understand DNS enough to troubleshoot on a domain in a multi site network that is using VPN's and has local sites with their own subsets, file, print, SQL servers, internal / external DNS , using a hosts file etc, . I agree with the comment above its way too basic.

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community