StarDomain
Domains & DNS

Understanding DNS: A Complete Beginner's Guide

Learn how DNS works, common record types (A, CNAME, MX, TXT), propagation, and troubleshooting. A beginner-friendly guide.

E
Editorial Team
March 26, 2026
7 min read201 views

What is DNS?

DNS (Domain Name System) is like the phone book of the internet. It translates human-readable domain names (like domainindia.com) into IP addresses (like 136.243.xxx.xxx) that computers use to communicate.

Without DNS, you would need to remember IP addresses for every website you visit.

How DNS Works

  1. You type domainindia.com in your browser
  2. Your computer asks a DNS resolver: "What's the IP for domainindia.com?"
  3. The resolver checks its cache. If not found, it asks the root nameserver
  4. The root nameserver directs to the .com nameserver
  5. The .com nameserver directs to domainindia.com's nameserver
  6. The authoritative nameserver returns the IP address
  7. Your browser connects to that IP address

This entire process takes milliseconds.

Common DNS Record Types

A Record

Maps a domain to an IPv4 address.

example.com → 192.168.1.1

AAAA Record

Maps a domain to an IPv6 address.

example.com → 2001:0db8:85a3::8a2e:0370:7334

CNAME Record

Creates an alias pointing to another domain.

www.example.com → example.com
blog.example.com → myblog.wordpress.com

MX Record

Directs email to your mail server. Priority number determines which server is tried first.

example.com → mail.example.com (priority 10)

TXT Record

Stores text information. Used for SPF, DKIM, domain verification.

example.com → "v=spf1 include:_spf.google.com ~all"

NS Record

Specifies which nameservers are authoritative for your domain.

example.com → ns1.domainindia.com, ns2.domainindia.com

DNS Propagation

When you change DNS records, the change doesn't happen instantly. DNS servers worldwide cache records based on TTL (Time To Live).

  • TTL 300 (5 minutes): Changes propagate in minutes
  • TTL 3600 (1 hour): Changes may take up to an hour
  • TTL 86400 (24 hours): Changes can take up to a day
Tip

Before making DNS changes, lower your TTL to 300 at least 24 hours in advance. This ensures faster propagation when you make the actual change.

Common DNS Issues

"DNS_PROBE_FINISHED_NXDOMAIN"

The domain doesn't exist in DNS. Check if your domain is registered and nameservers are set correctly.

"Server not found"

DNS resolution failed. Your nameservers may be incorrect or the domain may have expired.

Slow propagation

Flush your local DNS cache and wait. Use whatsmydns.net to check global propagation status.

Conclusion

DNS is fundamental to how the internet works. Understanding A records, CNAME records, and MX records will help you manage your domain, set up email, and troubleshoot issues. For most users, your hosting provider manages DNS automatically — but knowing the basics empowers you to make changes confidently.

Share this article
E
Written by

Editorial Team

Our editorial team shares expert knowledge and practical insights to help you succeed online with hosting, domains, and web technology.