664 words
3 minutes

DNS for IT Girls - How the Internet Works Like Magic

By · Developer Advocate · Docker Captain · IBM Champion
Bright office desk by a floor-to-ceiling window overlooking a city skyline of high-rise apartments, with a silver iMac and a smaller MacBook in front, a framed 'Real Artists Ship' print, and a glass jar with an orchid on the windowsill

Hey, tech queens! 👩‍💻💖

So let’s talk DNS. It’s the secret behind why you get to type google.com instead of some long, impossible-to-remember number. DNS is what makes the internet easy and user-friendly. And once it clicks for you? You’ll feel like a total networking goddess. 👑💡

What is DNS?#

DNS (Domain Name System) is basically the translator of the internet. It takes human-friendly domain names (web.yourcompany.net) and turns them into machine-readable IP addresses.

Think of your phone contacts. You don’t memorize numbers, you just tap a name. DNS pulls the same trick, except for websites.

Without it? You’d be typing 10.0.0.25 every time you wanted facebook.com. Not cute. 😅

The Hosts File: The Old-School Hack#

Way back before DNS, people mapped names to IPs by hand, in the /etc/hosts file. Yeah, ancient times. 😂 But here’s the fun part. That trick still works today, and you can use it to override your machine’s DNS settings whenever you feel like it.

Pro Tip: Manually Map Names to IPs#

Say you’ve got a database server sitting at 10.0.0.5, and you’d rather reach it by typing database. Drop this single line into your /etc/hosts file:

Terminal window
10.0.0.5 database

Done. Now every ping database you run connects straight to 10.0.0.5, and DNS doesn’t even get a vote. #HackTheNetwork 😏💻

Enter the DNS Server!#

Managing hostnames by hand gets messy, fast. That’s the whole reason DNS servers exist. They keep everything in one place, so instead of babysitting a giant hosts file, your system just asks a DNS server for the right IP.

Picture your company’s internal DNS server living at 10.10.10.1. Your laptop pings it any time it needs to resolve a hostname. And if that server has no clue? It forwards the request up the chain until somebody knows the right IP.

Pro Tip: Set a Custom DNS Server#

Want to tell your system exactly where to look? Update the /etc/resolv.conf file like so:

Terminal window
nameserver 10.10.10.1

And just like that, all DNS requests head to 10.10.10.1 first. 🎯

Subdomains: The DNS Name Tree#

Ever notice we have maps.yourcompany.net, mail.yourcompany.net, and drive.yourcompany.net? Those are subdomains, darling. They keep all the different services inside a company or website neat and organized. 🌍✨

Here’s what a company setup might look like:

  • web.yourcompany.net → Main website
  • db.yourcompany.net → Database server
  • mail.yourcompany.net → Email services

When someone types one of those names, DNS makes sure they land on the correct servers. It’s the road sign system of the internet! 🚦

DNS Caching: How the Internet Gets Faster#

Every time you load a website, your system tucks away the DNS result, so it never has to ask twice. That’s caching. It makes everything snappier 🚄. The catch? It can trip you up when an IP changes underneath you.

How to Clear Your DNS Cache#

Website acting weird and refusing to load? Flushing the DNS cache often fixes it.

🖥️ On Windows:

Terminal window
ipconfig /flushdns

💻 On Mac/Linux:

Terminal window
sudo systemd-resolve --flush-caches

Now your system goes and grabs fresh DNS info instead of clinging to stale data. 🔥

Public vs Private DNS: Who Controls the Internet?#

When your DNS server doesn’t know the answer, it passes the question along to public DNS servers. The big ones:

Google DNS8.8.8.8
Cloudflare DNS1.1.1.1
OpenDNS208.67.222.222

But inside company networks? Private DNS servers run the show, and they keep things locked down. Because if you work at yourcompany.net, the last thing you want is random strangers resolving your internal servers. 🚨

Recap: DNS is the GPS of the Internet!#

So now you’ve got it. DNS is the backbone of the web. It translates names into IPs, sorts out your subdomains, caches results so everything flies, and lets you override settings when needed.

Quick Cheat Sheet:#

/etc/hosts → Manually map names to IPs
/etc/resolv.conf → Set your preferred DNS server
ping, nslookup, dig → DNS troubleshooting tools
ipconfig /flushdns → Clear DNS cache (Windows)
systemd-resolve —flush-caches → Clear DNS cache (Linux/Mac)

And that makes you an official DNS queen. 👑💻 So tell me, sis, have you ever messed around with your own DNS settings? Let’s chat in the comments! 💬✨


Tatiana Mikhaleva

Docker Captain  ·  IBM Champion  ·  AWS Community Builder

DevOps.Pink — Signal over noise in cloud-native & AI.

Pink Signal

The cloud-native stack, without the gatekeeping

Docker, Kubernetes, and the agentic-AI era — hands-on and clearly explained, for engineers who actually ship. Pink Signal lands in your inbox when there's something worth knowing.

Related Posts

Same category
  1. 1
    How to Secure AI Agents in Production: IBM's Six-Phase Framework
    DevOps & Cloud · Teams secure AI agents like normal software, and production breaks. Here's IBM and Anthropic's six-phase framework for securing them, phase by phase.
  2. 2
    Your AI Agent Doesn't Need a Better Prompt. It Needs a Ceiling
    DevOps & Cloud · A prompt is not a security control. It's a wish. The Vault → Sentinel → MCP → ADLC → watsonx Orchestrate stack that gives AI agents a hard ceiling — and why IBM consolidating HashiCorp made the whole thing boring, in the best possible way.
  3. 3
    CNCF Q1 2026 Report — Why Feature Flagging Is the Hidden Gateway to Cloud Native Maturity
    DevOps & Cloud · CNCF Q1 2026 cloud native report analysis. Why feature flagging is the bridge from mainstream to advanced engineering practice, with exclusive commentary from the report's author.
  4. 4
    AI SRE Joined My On-Call — A Beginner-Friendly Walkthrough of Rootly
    DevOps & Cloud · What an AI SRE actually does on call. A hands-on walkthrough of Rootly — how it observes, advises, and (when you let it) acts. With a real look at the four-level trust model.

Random Posts

Random
  1. 1
    Kubernetes Is No Longer Number One — The REAL 2025 Cloud Native Report (CNCF x SlashData)
    DevOps & Cloud · Kubernetes is no longer number one. The 2025 CNCF x SlashData report reveals the real cloud-native trends — backend growth, DevOps adoption, AI gaps, and the technologies developers actually use.
  2. 2
    How AI Learns — and Where It's Actually Used
    AI & MLOps · How AI learns (supervised, unsupervised, reinforcement) — explained simply, with real-life examples you'll actually relate to.
  3. 3
    10 Terraform Interview Questions You Must Know in 2025
    DevOps & Cloud · Master 10 key Terraform interview questions for 2025 DevOps and Cloud Engineer roles with tips, examples, and expert insights.
  4. 4
    Best CI/CD Tool in 2025? GitHub Actions vs GitLab CI vs Argo Workflows
    DevOps & Cloud · Compare GitHub Actions, GitLab CI, and Argo Workflows in 2025 — and find out which CI/CD tool best fits your team and pipeline.
DNS for IT Girls - How the Internet Works Like Magic
https://devops.pink/dns-for-it-girls-how-the-internet-works-like-magic/
Author
Tatiana Mikhaleva
Published
2025-03-15
License
CC BY-NC-SA 4.0