DNS Guide Thailand
Contents
What is DNS
DNS (Domain Name System) translates human-readable domain names like "google.com" into IP addresses like "142.250.185.14" that computers use to connect. It functions as the internet's phone book, using DNS Resolvers, Root Nameservers, TLD Nameservers, and Authoritative Nameservers.
DNS
When you type a domain, your browser queries a DNS Resolver (your ISP's or a custom one like 8.8.8.8). If not cached, the Resolver queries Root Nameserver → TLD Nameserver → Authoritative Nameserver, which returns the IP address. The browser then connects to that IP.
DNS Record
DNS Records are data sets defining where a domain points. The most commonly used are A Records, AAAA Records, MX Records, CNAME Records, TXT Records, and NS Records — each serving a distinct purpose.
Record AAAA Record
A Record is the most fundamental DNS record, pointing a domain or subdomain to an IPv4 server address. AAAA Records do the same for IPv6. Modern setups should configure both for full compatibility.
MX Record
MX (Mail Exchanger) Records specify which mail server handles email for your domain, with Priority numbers (lower = higher priority). Multiple MX records provide redundancy.
CNAME Record
CNAME (Canonical Name) Records create aliases pointing one domain to another — like www.example.com → example.com or shop.example.com → store.shopify.com. Important: CNAME cannot be set at the root domain (@).
What is TTL DNS
TTL (Time to Live) defines how long DNS Resolvers cache your records in seconds. Low TTL (300 = 5 min) enables fast propagation but increases DNS server load. High TTL (86400 = 1 day) reduces queries but slows changes.
What is DNS Propagation
DNS Propagation is the time it takes for DNS changes to spread globally — typically 1-48 hours, though often much faster with low TTL settings. During propagation, some visitors may see the old site while others see the new one.
DNS
Common DNS issues: "Server Not Found" despite correct domain, email delivery failures, or SSL certificates not issuing. Debug by checking DNS records with nslookup or dig, and verify nameservers point correctly.