DNS
What? π€
The Domain Name System (or DNS) converts human readable domain names (like: www.google.com) into Internet Protocol (IP) addresses (like: 173.194.39.78)
Why? π€
Computers can only communicate using a series of numbers, so DNS was developed as a sort of βphone bookβ that translates the domain you enter in your browser into a computer readable IP.
Process βοΈ
βοΈ Check your device cache
When you search for a website or web-page , your browser will not know the i.p address of the web server. Your browser will first check its cache memory to see if it has the DNS records for that domain cached. It also checks the hostfile
of your computer/mobile for the ip address.
βοΈ Check with your ISP
Your ISP (Internet Service Provider) caches popular sites like Google.com , Netflix.com , (facebook?), Youtube.com etc. If they have the record in their cache, you would skip the rest of the DNS lookup process.
βοΈ Root DNS server & TLD server
Top Level Domains are .com
.gov
.net
.in
etc.
Top Level Domain servers have information about the Master/Authoritative DNS servers
which actually contain the server information.
Root DNS servers are tasked to find and point to the Top Level Domain Servers.
βοΈ Super Fast! β‘
This entire DNS lookup process happens in just a couple milliseconds. For perspective, we blink our eyes in roughly 50 milliseconds. We can resolve most DNS queries in under 30 milliseconds.π
βοΈ References
Post by | Aftab Faisal |
---|---|
π | https://www.linkedin.com/in/aftab22/ |
π | https://github.com/aftab22 |
π | https://dev.to/aftab22 |
Top comments (0)