The working of Domain Name System’s ..

What Is DNS ?

The Domain Name System, or DNS, is used to resolve human-readable hostnames, such as, into machine-readable IP addresses, such as,  DNS also provides other information about domain names, such as mail services.

 How does DNS work?

When you visit a domain such as, your computer follows a series of steps to turn the human-readable web address into a machine-readable IP address. This happens every time you use a domain name, whether you are viewing websites, sending email, or listening to Internet radio stations.

Step 1: Request information

The process begins when you ask your computer to resolve a hostname, such as visiting   http:// The first place your computer looks is its local DNS cache, which stores information that your computer has recently retrieved. If your computer doesn’t already know the answer, it needs to perform a DNS query to find out.

Step 2: Ask the recursive DNS servers

If the information is not stored locally, your computer queries (contacts) your ISP’s recursive DNS servers. These specialized computers perform the legwork of a DNS query on your behalf. Recursive servers have their own caches, so the process usually ends here, and the information is returned to the user.

Step 3: Ask the root name servers

If the recursive servers don’t have the answer, they query the root name servers. A name server is a computer that answers questions about domain names, such as IP addresses. The thirteen root name servers acting as a kind of telephone switchboard for DNS; they don’t know the answer, but they can direct our query to someone that knows where to find it.

Step 4: Ask the TLD name servers

The root name servers will look at the first part of our request, reading from right to left — and direct our query to the Top-Level Domain (TLD) name servers for .com. Each TLD, such as .com, .org, and .us, have their own set of name servers, which act like a receptionist for each TLD. These servers don’t have the information we need, but they can refer us directly to the servers that do have the information.

Step 5: Ask the authoritative DNS servers

The TLD name servers review the next part of our request —— and direct our query to the name servers responsible for this specific domain. These authoritative name servers are responsible for knowing all the information about a specific domain, which are stored in DNS records. There are many types of records, which each contain a different kind of information. In this example, we want to know the IP address for, so we ask the authoritative name server for the Address Record (A).

Step 6: Retrieve the record

The recursive server retrieves the A record for http://www.vikrantambhore.infrom the authoritative name servers, and stores the record in its local cache. If anyone else requests the host record for, the recursive servers will already have the answer, and will not need to go through the lookup process again. All records have a time-to-live value, which is like an expiration date; after a while, the recursive server will need to ask for a new copy of the record to make sure the information doesn’t become out-of-date.

Step 7: Receive the answer

Armed with the answer, recursive server returns the A record back to your computer. Your computer stores the record in its cache, reads the IP address from the record, then passes this information to your browser. The browser then opens a connection to the webserver and receives the website.

This entire process, from start to finish, takes only milliseconds to complete.


About Vikrant Ambhore

I will Talk Later
This entry was posted in Network Fundamentals. Bookmark the permalink.

1 Response to The working of Domain Name System’s ..

  1. Hi! I just would like to give you a huge thumbs up for the great info you have got right
    here on this post. I’ll be returning to your site for more soon.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s