DNS Lookup Explained
DNS is the internet’s phone book. Understanding the record types and the lookup chain makes debugging domains far easier.
What DNS is
The Domain Name System maps names like example.com to addresses and services. Without it you would type IP addresses everywhere. Look up records with the free DNS lookup tool.
The main record types
| Type | Purpose |
|---|---|
| A | Hostname → IPv4 address |
| AAAA | Hostname → IPv6 address |
| CNAME | Alias to another hostname |
| MX | Mail servers |
| TXT | Verification, SPF, DKIM, DMARC |
| NS | Authoritative name servers |
| SRV | Service location (e.g. SIP) |
| CAA | Which CAs may issue certs |
How a lookup happens
- You request
example.com. - The resolver checks its cache.
- If missing, it asks a root server, then the TLD (.com), then the domain's authoritative name server.
- The authoritative server returns the record.
- The resolver caches it for the TTL and answers you.
TTL and propagation
TTL (time to live) says how long resolvers may cache a record. A low TTL (e.g. 300s) speeds up changes; a higher TTL reduces lookup load. "DNS propagation" is really caches expiring.
Common tasks
- Verify a domain — add a TXT record.
- Point a subdomain — A/AAAA or CNAME.
- Set up email — MX plus SPF/DKIM/DMARC TXT records.
- Troubleshoot — compare records from multiple resolvers.
Check a domain's records with DNS lookup and its registration with WHOIS.
A/AAAA vs CNAME
- Use A/AAAA for the root domain.
- Use CNAME for subdomains pointing to a hostname (e.g. a CDN).
- Never point a CNAME at the root where the standard forbids it — use provider-specific ALIAS/ANAME.
Troubleshooting checklist
- Are the NS records correct?
- Does the record exist at the authoritative server?
- Is the TTL still caching an old value?
- Are A/AAAA pointing at the right IP?
- Is the service actually listening on the port? (check with port checker)
Look it up
Query any domain's records instantly with the free DNS lookup — no signup, results in your browser.