DEV Community

Cover image for DNS -The gatekeeper 24/7 of the internet - Part 1
Luke
Luke

Posted on • Edited on

1 1 1 1

DNS -The gatekeeper 24/7 of the internet - Part 1

The first time I learned about web development, I had so many questions to ask like:

  • What happens behind the scenes after I type the URL and press enter?
  • Why in ULRs have too many suffixes diff (.com, .gov, .edu, etc)?
  • And how can web browsers find the right website in millions to trillion websites?

With the help of Mr.IKnowEveryThing aka Google, I met the gatekeeper - DNS aka Domain Name System, he/she (or maybe it 👀) answered every my question above

What is DNS?

For an easy explanation, think of DNS as a phone book. Unlike a regular phone book that stores names and phone numbers, DNS stores both the domain name and the corresponding IP address.

Why call DNS the gatekeeper?

DNS Gatekeeper

Gatekeeper, the name talks the meaning, every request you send or response you receive must go through DNS first. But the action DNS makes with request and with response is diff.

With request, DNS becomes a translator, it will translate human-friendly domain names (example.com) into numeric IP addresses (192.0.2.1). With this, it guides your request through a hierarchy of servers, ensuring you reach the right place.

Web Process

With response, DNS becomes security guys, it will ensure the response from legit servers only. On another hand, with some security steps, DNS helps prevent unauthorized alterations

Where is DNS?

In fact, DNS will be stored on a server in the data center of your ISP (Internet Service Provider). Means it appears around the world

DNS location

Summary

That's it, you have met the gatekeeper of the internet, and you know why it works 24/7. If it retire or sick, we need access the website by magic number - IP address, not mention security problem yet 😂

I will talk about how DNS works in the next part.

Happy Coding!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay