Theme
Guides About Us Contact PixelPing.net (Image & PDF Tools) ↗
DNS & Domeinen 8 min leestijd 2026-03-18 ToolPing Engineering Team

The Ultimate DNS Guide: Record Types (A, AAAA, MX, CNAME, TXT) & Troubleshooting

Understand how the Domain Name System functions. Complete breakdown of A, AAAA, CNAME, MX, TXT (SPF/DKIM/DMARC), NS, SOA records, TTL, and propagation.

1. What is DNS and How Does the Resolution Hierarchy Function?

The Domain Name System (DNS) is widely considered the bedrock telephone directory of the modern internet. While humans naturally remember memorable alphabetical names such as toolping.net, github.com, or wikipedia.org, networking hardware, routers, and load balancers communicate strictly via numerical IP addresses (such as 185.199.108.153 or 2606:4700::6811:d209).

When you enter a URL into your browser, a four-step hierarchical lookup takes place in tens of milliseconds:

  1. DNS Recursive Resolver: The client machine queries the local ISP resolver or public resolver (such as Cloudflare 1.1.1.1 or Google 8.8.8.8).
  2. Root Nameserver (.): Directs the resolver to the appropriate Top-Level Domain (TLD) nameserver based on the domain extension (e.g., .net, .nl, .com).
  3. TLD Nameserver: Directs the resolver to the Authoritative Nameservers responsible for the specific domain zone file.
  4. Authoritative Nameserver: Holds the official zone file records and returns the precise IP address or alias to the client.

2. Essential DNS Record Types Explained

A domain zone file contains various standardized resource record types, each fulfilling a specialized routing, verification, or administrative duty:

  • A Record (Address Mapping): Maps a fully qualified domain name (FQDN) directly to a 32-bit IPv4 address. Example: toolping.net -> 185.199.108.153.
  • AAAA Record (IPv6 Address Mapping): Maps a domain to a 128-bit IPv6 address (e.g., 2001:4860:4860::8888). Essential for modern dual-stack web architectures.
  • CNAME Record (Canonical Name): Creates an alias that points one domain name to another domain name rather than an IP address. Common use case: pointing www.toolping.net to the root domain toolping.net, or delegating routing to a Content Delivery Network (CDN).
  • MX Record (Mail Exchange): Dictates which mail servers receive inbound email for the domain. MX records include a numerical priority preference (e.g., 10 mail1.example.com, 20 mail2.example.com), where the lowest number indicates the highest delivery priority.
  • TXT Record (Text Verification & Email Authentication): Stores arbitrary human- and machine-readable text strings. Critical for domain ownership verification (Google Search Console, SSL validation) and modern anti-spoofing email security frameworks (SPF, DKIM, and DMARC).
  • NS Record (Nameserver Delegation): Explicitly declares which authoritative nameservers manage and answer queries for the DNS zone.
  • SOA Record (Start of Authority): Contains fundamental administrative metadata about the zone, including the primary master nameserver, contact email, serial version number, and synchronization timers (Refresh, Retry, Expire, and Minimum TTL).
  • PTR Record (Pointer): Used exclusively in reverse DNS lookups (rDNS) to resolve an IP address back to its associated domain name, heavily used by mail servers to verify sender authenticity.

3. TTL (Time to Live) and DNS Caching Mechanics

To avoid hammering authoritative nameservers with billions of repetitive requests per second, DNS relies heavily on distributed caching. Every DNS record contains a Time to Live (TTL) value expressed in seconds.

The TTL specifies exactly how long intermediate resolvers, enterprise gateways, and client operating systems may cache a query result before querying the authoritative nameserver again:

  • Standard Production TTL (86400s / 24 hours): Maximizes caching efficiency, reduces DNS query latency, and shields authoritative servers from excessive load.
  • Pre-Migration TTL (300s / 5 minutes): When preparing to migrate servers or change web hosting providers, best practice dictates lowering TTL values to 300 seconds 24 to 48 hours prior to the migration. This guarantees that visitors switch to the new server almost immediately once the records are altered.

4. Email Security in DNS: SPF, DKIM, and DMARC

Without DNS-based security policies, anyone on the internet can spoof your domain name and send fraudulent phishing emails appearing to come from your organization. Modern email infrastructure requires three complementary TXT records:

  1. SPF (Sender Policy Framework): Defines which outbound IP addresses and mail relays are legally authorized to transmit email on behalf of your domain (e.g., v=spf1 include:_spf.google.com ~all).
  2. DKIM (DomainKeys Identified Mail): Publishes a cryptographic public key in DNS that recipient mail servers use to verify digital signatures attached to email headers, proving the email was not modified in transit.
  3. DMARC (Domain-based Message Authentication, Reporting, and Conformance): Tells recipient mail servers what policy to enforce if SPF or DKIM fails (p=none, p=quarantine, or p=reject) and specifies reporting addresses for forensic analysis.

5. Diagnosing DNS Issues with ToolPing

Having trouble with domain propagation or suspect a misconfigured mail server? Use the free ToolPing DNS Lookup Tool to instantly query all major record types (A, AAAA, MX, TXT, NS, CNAME, SOA) across global resolvers, or inspect IP mappings with our IP Lookup Tool.

Test It Yourself in the Browser

All network and security diagnostics described in this guide can be executed instantly and for free with ToolPing utilities.

Ping Test DNS Lookup SSL Checker Subnet Calculator All Guides
Back to Knowledge Base Overview Back to top