ALL >> Computers >> View Article
Dns
When you enter a web site address (a URL) into your browser's
address bar (or click on a hyperlink), you actually set in motion
a complex series of events. It sounds simple - the name must be
translated into a TCP/IP address - but some real magic is
occurring under the covers of the internet.
You see, the internet uses a special number known as a TCP/IP
address to identify machines. Each and every machine on the
internet has one of these numbers. An example is 23.5.67.9 -
each of the four numbers is called an octet. Thus, the URL
www.internet-tips.net might actually translate to 23.5.67.9
using something called DNS.
Okay, before I go on any further with this explanation,
understand this article is a highly simplified description of a
process that is actually highly technical, extremely complex and
very difficult for even the experts to totally understand. People
spend years in training learning how this all works.
When your machine needs to retrieve a URL (when you enter a web
site address in the browser address line, for example), ...
... it first
checks to see if it already knows how to translate the address.
Depending upon the operating system and browser, a number of
different steps might take place.
The first basic fact to understand is that TCP/IP has been
designed to attempt to reduce the expense (the time) it takes to
translate a name to a TCP/IP number. This translation is
potentially extremely time consuming, and users don't like to
wait. So a number of intermediate steps have been added to
attempt to speed things up.
First your system looks to see if it already has done the
translation recently (this is called caching). What happens is
each time your computer successfully performs a translate it
makes a note of the results off to the side. Later, if you enter
the same URL, the system looks on it's list, finds it already has
the address and returns that value.
If your system has not translated the URL before, it might check
the LMHOSTS or HOSTS files (these are just text files used to aid
in translating host names to TCP/IP addresses) and perhaps other
things as well. Note that if the address has been cached, it
might be refreshed (retrieved from the internet again) if it is
too old (perhaps the address was translated a few days ago). The
HOSTS and LMHOSTS files are never refreshed - they are assumed to
be correct.
Now the system has no choice except to look outside to the
internet to try and translate the URL. So your system will send a
translation request out to your primary DNS server. This is
usually supplied to you by your ISP when you installed your
computer on the internet. If the primary DNS server cannot be
reached for some reason, then the secondary DNS server will be
queried.
Okay, now it gets a little more complicated so we will work with
an example. Assume the address "www.internet-tips.net". A name
server may or may not (depending upon what type of name server
and how it is configured) remember addresses that have been
requested before. If they remember, then they will simply return
the translation directly back to your computer.
Most likely, though, the primary DNS does not know how to
translate the hostname, so it will go out and ask some other
name servers. It will start with the root domain (.NET in our
example) and ask it if it knows how to translate "internet-tips".
The .NET name server may or may not know. So it will either say
"sure, here's the address" or "no, I don't know, but here are the
addresses of some other name servers in .NET that may know."
These servers will be asked, and will perform the same actions.
This will continue until there is no where to turn for the answer
(there is no resolution) or the translation is found.
Once the name server who knows the address of "internet-tips" is
found, it will be asked if it knows the address of the "www". It
will either return the address (this is very likely) or return
the name(s) of name servers that might know the answer themselves.
Now that the name server (primary or secondary) as the actual
TCP/IP address it sends it back to your machine.
I hope that helps explain, just a little, how the magic really
works under the covers.
About the Author
Richard Lowe Jr. is the webmaster of Internet Tips And Secrets
at http://www.internet-tips.net - Visit our website any time to
read over 1,000 complete FREE articles about how to improve your
internet profits, enjoyment and knowledge.
Add Comment
Computers Articles
1. Rental Management Software: A Complete Solution For Car, Property, And Coworking SpaceAuthor: RentAAA
2. The Ai Revolution: What’s Coming In 2025
Author: Ben Gross
3. The Rising And Falling Trends Of Graphic Card Prices In 2024
Author: Alahdeen
4. What Is Test-driven Development And Which Three Rules Does It Follow?
Author: Byteahead
5. What Is Web Application Architecture?
Author: goodcoders
6. Understanding How Wifi Works: The Wireless Connection Process Explained
Author: Kr
7. What’s Coming In Cybersecurity For 2025?
Author: Ben Gross
8. Hire Magento Expert In India
Author: Yuvraj Raulji
9. Discovering Everything About C15 Power Cables
Author: Jennifer Truong
10. Want To Get Long-distance Power? Time To Grab Extension Power Cords
Author: Jennifer Truong
11. Best Android Development Tools To Use
Author: Best Android Development Tools To Use
12. Choosing The Right Kansas City Web Design Partner For Your Business Success
Author: naviworld1h
13. The Importance Of Choosing The Right Kansas City Ecommerce Developer And Logo Design Expert
Author: naviworld1h
14. Top Mobile App Companies And Developers In Kansas City
Author: naviworld1h
15. Boost Your Business With A Leading Web Design Company In Kansas City
Author: naviworld1h