Share EncyclopediaHome EncyclopediaCategories Switch Channel

Then talk about the dns work

2026-03-28 06:071470NameNetworking

2. Dns queries journey

When you enter a domain name (e. G. Google. Com) in a browser, the following steps are taken to understand the domain name as an ip address:

Browser cache

The browser first checked its own cache. It will check whether you have recently deciphered the domain name you tried to access。

How does the browser work

If the cache works, it will use the cache ip address directly. This is the fastest route, as no additional treatment is required。

2. Operational system cache

If the browser does not know, it will seek help from the computer operating system。

How does the browser work

The operating system maintains a local cache containing the most recent domain name query records for application sharing. If a record exists here, the operating system returns the ip address and the search is completed。

3. Recursive resolutionr

If the operating system does not have an answer, your computer sends the query to a special server called the recursor。

How does the browser work

This solver is usually operated by your internet service provider (isp) or a public dns service (e. G。

The task of the recursor is to help you do all the heavy work of finding the correct ip address. It will be searched until the answer is found or the domain name is confirmed。

Root servers

If the solver cache does not have an answer, it starts at the top of the internet hierarchy: root server。

How does the browser work

There are only 13 such root servers worldwide (although they have copies in hundreds of locations for reliability)。

5. Top-level domain name server

The solver now communicates with the top level domain name server. The top-level domain name server manages all domain names that end with a specific suffix, such as. Com. Example. Com,. Org. Example. Com. Gov,. Example. Com. In,. Example. Com, etc。

So the solver asks the . Com top level domain name server: "hey, where can i find information about google. Com?"

How does the browser work

The top-level domain name server also has no final ip address. However, it knows which server is the official record-keeping server for the domain name, google. Com. It points the solver to the authoritative name server for the domain name。

6. Authority name server

Finally, the solver will contact the authoritative name server. The server is the ultimate authoritative source of a given domain name and keeps the official dns records of the domain name, google. Com and knows its exact ip address。

How does the browser work

The authoritative server responds to the correct ip address (e. G., 142. 250. 183. 100)。

These records can contain multiple ip addresses for load balance and failure transfer。

The authoritative server returns the actual a record (for ipv4) or aaa record (for ipv6). It can also return other records on search (e. G. Mx records for e-mail, cname records for aliases, certified txt records)。

7. Return browser

The parser now gets the ip address. It will convey this information back to your computer. Your computer will then cache this result so that next time you do not have to repeat the process。

Like 0
Report
Favorite 0
Tip 0
Comment 0
Share 6
MoreRelated Comments
No comments yet, be the first to comment
Old things make dreams. They write love letters for their childhood with junk
Did you ever do that when you were a kid -- you saved a drawer of popsicle sticks to build a small house? The power of the stock, "snatching for the world", has been hidden in the hearts of many。In henan, there's an old man named dachang, who's trying to make it real. Over the past 15 years, nearly 30,000 strangled cans, without entering the recycling site, have become his family's private convoyland cruisers, helicopters, even tanks. Neig

0评论2026-08-0992