Blog 10 Understanding DNS to Inodes: From Browsers to Backends
π What Is DNS? Why Should DevOps Even Care?
π Explained Like You’re 15!
✍️ By: Kalyan Kalavena | DevSecOps in the Making
π Human Names vs Machine Numbers
When you type facebook.com, your browser magically opens Facebook.
But under the hood? It’s just finding a real server with an IP address like 157.240.22.35.
Humans = love names
Computers = need numbers
That’s where DNS (Domain Name System) steps in — it's the internet’s phonebook.
facebook.com → DNS → 157.240.22.35 → BOOM, Facebook Loads!
⚙️ How DNS Actually Works (Real Flow)
You visit:
mysql.daws82s.online
Here’s the backend magic:
- Resolver asks, “Where’s this domain?”
- DNS checks
.online→ asksdaws82s.onlinenameserver - Nameserver responds: “Here’s mysql's IP”
- Browser hits the IP → Site loads π₯
π What’s an IP Address?
Every server = house
IP = address
Two types:
| Type | Changes When? |
|---|---|
| Public IP | Restart cloud instance |
| Private IP | Recreate VM |
π‘ If IP changes, update backend configs & restart services:
sudo systemctl daemon-reexec
sudo systemctl restart backend
π§⚖️ Who Owns DNS?
ICANN = The Internet Boss
(Internet Corporation for Assigned Names and Numbers)
They manage:
- π Country TLDs (
.in,.uk) - π️ Org domains (
.edu,.gov) - π‘ Custom ones like
.ai,.online,.telugu
Want joindevops.telugu? Gotta go through ICANN!
π What Happens When You Buy a Domain?
You buy daws82s.online from GoDaddy/Hostinger:
- Host tells
.onlineregistry (Radix) you own it - You assign Nameservers
- Add A Records to map domains to IPs
mysql.daws82s.online → 13.212.56.78
Done. DNS knows where to send traffic!
π Common DNS Records
| Type | Purpose |
|---|---|
| A | Domain → IP |
| CNAME | Domain → Another domain |
| MX | Mail servers |
| TXT | Verification, SPF, etc. |
| NS | Nameservers |
| SOA | Domain ownership + config metadata |
π ️ Real DevOps Example (Systemd + Nginx)
Systemd:
[Service]
Environment=DB_HOST="mysql.daws81s.online"
ExecStart=/bin/node /app/index.js
Nginx Proxy:
location /api/ {
proxy_pass http://backend.daws81s.online:8080/;
}
Visit:
http://daws81s.online/api/transaction
→ Proxies to backend API!
π¬ Bonus: Inodes, Symlinks & Hardlinks
𧬠Inode = File's DNA
Stores: permissions, timestamps, size, etc.
π Symlink
- Shortcut to file
- Different inode
- Breaks if original file is deleted
lrwxrwxrwx 1 root root 11 Dec 26 03:10 DbConfig1.js -> DbConfig.js
πͺ’ Hardlink
- Same inode
- Works even if original is deleted
- Not for directories
ls -i filename # Get inode
find / -inum <inode> # Find all hardlinks
π― Final Takeaway
DNS is the invisible butler of the internet.
Inodes, links, and configs? They're your DevOps gears.
π₯ Mastering this stuff makes you a builder — not just a button-pusher.
π¨π» Written by: Kalyan Kalavena
π‘️ DevSecOps in the Making | Terminal to Terraform
π’ All rights reserved. Kalyan .
Comments
Post a Comment