Back To Blog
DNS, Domain Management & Networking

Understanding DNS Record Types: A, AAAA, CNAME, MX, TXT & More

Understanding DNS Record Types: A, AAAA, CNAME, MX, TXT ও অন্যান্য DNS রেকর্ডের সম্পূর্ণ গাইড
  • 📅 Published Date: November 7, 2026
  • ✍️ Publisher: Toolstrem Editorial Team
  • 🏷️ Topics: DNS, Domain Management, Web Hosting & Network Administration

When you type google.com or youtube.com into your browser and press Enter, the website appears in milliseconds. But have you ever wondered how your computer knows which server hosts google.com?

Behind the scenes works DNS or the Domain Name System. It is a critical internet infrastructure that translates human-readable domain names into computer-friendly numeric IP addresses.

DNS is not just for finding websites. Mail delivery routing, authoritative nameservers, SSL certificate issuance authorization via CAA, and domain ownership verification all rely on DNS records.

This comprehensive guide covers how DNS works, explanations of A, AAAA, CNAME, MX, TXT, NS, SOA, CAA records, how to test configurations, and how to troubleshoot common issues.

1. What is DNS and Why is it Needed?

DNS stands for Domain Name System. It is a distributed naming system that translates human-friendly domain names into computer-readable IP addresses and network resources.

On the internet, servers communicate using IP addresses—such as IPv4 (e.g. 93.184.216.34) and modern IPv6 (e.g. 2001:db8::1). DNS allows us to remember friendly names instead of strings of numbers.

2. How Does DNS Work?

DNS resolution follows a hierarchical lookup process:

Step 1: Browser & OS Cache Check

Your operating system checks if the IP address is already cached locally.

Step 2: Recursive Resolver Query

Queries are sent to recursive resolvers (e.g., Cloudflare 1.1.1.1 or Google 8.8.8.8).

Step 3: Root DNS Servers

Points the resolver to the responsible TLD nameservers.

Step 4: TLD Name Servers

Handles extensions like .com, .org, .net, pointing to authoritative servers.

Step 5: Authoritative DNS Server

Provides the actual zone records (A, AAAA, MX, CNAME, etc.).

Step 6: Response & Caching

The IP address is returned to the client and cached according to the TTL value.

3. What is a DNS Record?

A DNS record is an instruction residing in a zone file defining how a domain or subdomain routes traffic.

ComponentDescription
Name / HostDomain or subdomain (@ or www)
TypeRecord type (A, AAAA, CNAME, MX, TXT)
Value / DataTarget destination (IP, hostname, verification text)
TTLTime to Live in seconds
PriorityOrder of preference (lower numbers = higher priority)

4. Major DNS Record Types

A Record: Maps a domain to an IPv4 address (e.g. example.com -> 93.184.216.34).

AAAA Record: Maps a domain to an IPv6 address (e.g. example.com -> 2001:db8::1).

CNAME Record: Creates an alias pointing one hostname to another canonical hostname.

MX Record: Routes incoming emails to specific mail servers with priority ranking.

TXT Record: Holds text information, essential for SPF, DKIM, DMARC, and site verification.

NS Record: Delegates a DNS zone to authoritative nameservers.

SOA Record: Stores zone authority parameters, serial number, and refresh timings.

CAA Record: Restricts which Certificate Authorities can issue SSL/TLS certificates for the domain.

SRV Record: Defines location and port numbers for specialized services (VoIP, SIP, XMPP).

PTR Record: Used in reverse DNS lookups to resolve an IP address to a hostname.

5. How SPF, DKIM, and DMARC Work

These three email authentication standards protect your domain against spoofing and phishing:

  • SPF (Sender Policy Framework): Specifies authorized sending mail servers.
  • DKIM (DomainKeys Identified Mail): Adds cryptographic signatures verified via DNS public keys.
  • DMARC: Sets enforcement policy (none, quarantine, reject) when authentication checks fail.

6. What are DNS Propagation and TTL?

DNS Propagation is the time it takes for DNS changes to spread across all worldwide caching resolvers. TTL (Time to Live) sets how many seconds resolvers cache records before querying authoritative servers again.

7. The Role of DNS Cache and DNSSEC

DNS Cache speeds up resolution and reduces internet traffic. DNSSEC provides cryptographic authentication preventing DNS spoofing and cache poisoning attacks.

8. Common DNS Configuration Issues

  • Website not loading: Check A and AAAA records, nameserver delegation.
  • Email failure: Verify MX records, merge multiple SPF entries into one.
  • Verification failure: Remove extra quotes or whitespace in TXT records.
  • SSL Certificate errors: Check CAA record authorizations.

9. How to Test DNS Records

Instant Online DNS Lookup

Check all A, AAAA, MX, CNAME, TXT, and NS records globally with our free tool:

Open Toolstrem DNS Lookup

10. Best Practices for DNS Management

  1. Always back up DNS records before making modifications.
  2. Lower TTL prior to server migrations.
  3. Implement SPF, DKIM, and DMARC for secure email delivery.
  4. Enable DNSSEC where supported.
  5. Audit DNS zone files periodically to remove obsolete records.

11. Real-World Domain DNS Configuration Example

HostTypeExample ValuePurpose
@A93.184.216.34Web server IPv4
@AAAA2001:db8::1Web server IPv6
wwwCNAMEexample.comWWW alias
@MXmail.example.com (Pri: 10)Email routing
@TXTv=spf1 include:_spf.google.com ~allSPF policy
google._domainkeyTXTv=DKIM1; k=rsa; p=MIIBIjA...DKIM public key
_dmarcTXTv=DMARC1; p=rejectDMARC policy
@NSns1.example-dns.comAuthoritative nameservers
@CAA0 issue "letsencrypt.org"SSL certificate issuance

Frequently Asked Questions (FAQ)

What is DNS Lookup?
DNS lookup is the process of querying DNS servers for specific records (A, MX, CNAME, etc.) associated with a domain.
What is the difference between A and AAAA records?
A records map to 32-bit IPv4 addresses, while AAAA records map to 128-bit IPv6 addresses.
Can a domain have multiple A records?
Yes. Multiple A records provide round-robin DNS load distribution.
Does flushing DNS cache speed up propagation?
It only clears your local computer cache, not global recursive resolver caches.

Toolstrem

Team Editoriale di Toolstrem

Il team editoriale di Toolstrem fornisce guide e risorse per professionisti del web.