From Domain to IP: Demystifying DNS Records in Minutes

🧠 First: Big Picture

DNS is basically a huge phonebook:
👉 “Human-readable name” → “IP address”

Example:
quizmaker.co.in → 104.18.2.119

But instead of just one mapping, DNS stores different types of records (RRs) for different purposes.

🧩 Key Terms (Super Important)

1. 🌐 Domain Name

A domain name is the main name registered on the internet.

👉 Example:
quizmaker.co.in

  • Think of it as your brand / root identity
  • Managed at domain level

2. 🏠 Hostname

A hostname is a specific machine/service under a domain.

👉 Examples:
www.quizmaker.co.in
api.quizmaker.co.in
relay1.main.quizmaker.co.in

👉 Structure:
[hostname].[domain]

So:

  • quizmaker.co.in → domain
  • relay1.main.quizmaker.co.in → hostname (specific server/service)

3. 🎯 IP Address

The actual address of a machine on the internet

👉 Example:
104.18.2.119

  • Computers talk using IPs, not names

4. 🔁 Canonical Name

“Canonical” = real/original name

A canonical name is the true hostname of a server.

👉 Used in CNAME records

Example:
quizmaker.co.in → server1.primary.quizmaker.co.in

Here:

  • quizmaker.co.in = alias
  • server1.primary.quizmaker.co.in = canonical (real) name

🔗 Now Let’s Understand Each Record Type

🅰️ A Record (Most Important)

👉 Maps hostname → IP address

(A, relay1.main.quizmaker.co.in, 104.18.2.119)

Meaning:

  • Hostname: relay1.main.quizmaker.co.in
  • IP: 104.18.2.119

📌 This is what ultimately lets your browser connect

🟡 NS Record (Name Server)

👉 Tells: “Who is responsible for this domain?”

(NS, quizmaker.co.in, dns.quizmaker.co.in)

Meaning:

  • Domain: quizmaker.co.in
  • DNS server: dns.quizmaker.co.in

📌 Used during DNS lookup process

🔁 CNAME Record (Alias)

👉 Maps alias → real (canonical) hostname

(CNAME, quizmaker.co.in, server1.primary.quizmaker.co.in)

Meaning:

  • Alias: quizmaker.co.in
  • Real server: server1.primary.quizmaker.co.in

📌 Then DNS will do:

server1.primary.quizmaker.co.in → IP (via A record)

So CNAME = indirection layer

📧 MX Record (Mail Server)

👉 Tells where emails should go

(MX, mail.quizmaker.co.in, mailserver1.backup.quizmaker.co.in)

Meaning:

  • Email domain: mail.quizmaker.co.in
  • Mail server: mailserver1.backup.quizmaker.co.in

📌 Used by email systems (SMTP)

⚖️ Differences (Crystal Clear)

Concept Meaning Example
Domain Name Root identity quizmaker.co.in
Hostname Specific service api.quizmaker.co.in
Canonical Name Real/original hostname server1.primary.quizmaker.co.in
IP Address Machine address 104.18.2.119

🔄 End-to-End Example (Putting It All Together)

Let’s say you type:
https://quizmaker.co.in

DNS might do:

CNAME:
quizmaker.co.in → server1.primary.quizmaker.co.in

A record:
server1.primary.quizmaker.co.in → 104.18.2.119

Browser connects to:
104.18.2.119

🧠 Intuition (Real-world analogy)

Think of it like this:

  • Domain name = Company name
  • Hostname = Specific office
  • Canonical name = Official registered office
  • IP address = GPS coordinates

CNAME is like:
👉 “This office is actually handled by another main office”

⚡ Key Takeaways

  • Domain = top-level identity
  • Hostname = specific service under domain
  • Canonical name = actual server name (used in CNAME)
  • IP address = real machine location
  • A record = final step (name → IP)
  • CNAME = alias layer (name → name → IP)

📖 Want a better reading experience?

👉 Visit the full blog here: https://quizmaker.co.in/creators/@swati_goyal_911/blog/from-domain-to-ip-demystifying-dns-records-in-minutes