How DNS Usually Works

Let's say you want to visit www.google.com. Your computer hasn't already looked up www.google.com since it was turned on.
Or it has kept that information for long enough that it considers it appropriate to check again.
So your computer asks the DNS server of your ISP (Internet Service Provider - the people who sell you an Internet connection, companies such as Otenet, HOL, Forthnet).

The DNS server of your ISP first talks to one of thirteen "root" DNS servers.
The root DNS servers answer questions at the highest level possible: the top-level domain.
For instance, "who is in charge of DNS for the com domain?"

In practice, your ISP's DNS server caches (remembers) this information for a significant period of time, and does not contantly harrass the root servers just in case responsibility for com has changed in the last five seconds. Similarly, your ISP's DNS server remembers other informaton for appropriate lengths of time as well to avoid extra queries.
But let's assume, just for fun, that no one has ever asked your ISP for the IP address of www.google.com before!

Now your ISP's DNS server knows which DNS servers are responsible for the com top-level domain.
So your ISP's DNS server reaches out and contacts one of those servers and asks the next question:
who is responsible for DNS in the google.com domain?

The response will list two or more DNS servers that have authority over the google.com domain.

Finally, your ISP's DNS server contacts one of those DNS servers and asks for the address of www.google.com, and hands the response back to your computer.

As mentioned above, in real life your ISP's DNS server will remember all of this information. That means that a typical user will get an immediate response when asking for the address of a frequently-visited site like Google
.

But how long is it safe to remember that information?
After all, the IP addresses of servers do change, though usually not often.
Fortunately, your ISP's DNS server doesn't have to guess!
The DNS records that come back from the "upstream" DNS servers include an "expire" field that indicates how long the information can be kept before the authoritative server should be asked again.

  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

What is DNS?

Every time you follow a link or type in the name of a website, such as www.bestdomains.gr, that...

How to change DNS Name Servers?

For all Domains registered with Bestdomains.gr we run our own DNS servers.   To have...