What is a DNS Lookup?
The Domain Name System (DNS) translates human-readable domain names into the IP addresses that computers use to communicate. A DNS lookup retrieves the records stored in this system for any given domain.
DNS Record Types Explained
- A: Maps a domain to an IPv4 address (e.g.
93.184.216.34). - AAAA: Maps a domain to an IPv6 address.
- CNAME: An alias pointing one domain to another.
- MX: Specifies the mail servers responsible for accepting email.
- NS: Lists the authoritative nameservers for the domain.
- TXT: Stores arbitrary text; used for SPF, DMARC, domain ownership verification, and more.
- SOA: Start of Authority; holds administrative information about the zone.
- CAA: Certification Authority Authorisation; controls which CAs can issue SSL certificates.
SPF and DMARC
SPF (Sender Policy Framework) is a TXT record that lists authorised mail-sending IP addresses, defined in RFC 7208. DMARC (Domain-based Message Authentication) builds on SPF and DKIM to instruct receiving servers on what to do with messages that fail authentication (RFC 7489). Both records are critical for email deliverability and anti-spoofing.
What is TTL?
TTL (Time to Live) tells DNS resolvers how long to cache a record before requesting a fresh copy. A short TTL (e.g. 300 seconds) means changes propagate quickly but increase DNS server load. A long TTL (e.g. 86400 seconds = 24 hours) reduces load but slows propagation after a change.
Related tools
- Check domain registration dates and status codes with the WHOIS lookup.
- Verify that the SSL certificate SANs match your DNS records with the SSL checker.
- Find the hosting provider behind an A record with the hosting checker.
How the DNS Lookup Works
When you submit a domain, the tool calls PHP's dns_get_record() function, which queries the resolver configured on the server. That resolver follows the standard recursive lookup process: it contacts the root nameservers, delegates to the appropriate top-level domain (TLD) nameserver, and finally queries the domain's authoritative nameserver directly. The result is not cached by this tool, so every lookup returns a fresh copy of the current DNS data.
The tool fetches all standard record types in a single request: A, AAAA, CNAME, MX, NS, TXT, SOA, and CAA. Each record is returned with its TTL, which shows how many seconds until the caching resolver must re-fetch the record. During DNS migrations, watching the TTL count down is a reliable indicator that propagation is nearly complete.
Common Use Cases
- Verifying SPF and DMARC before an email migration: Before switching email providers, check the existing TXT records to confirm SPF and DMARC policies are correctly set. An SPF record that references the old provider's mail servers will cause deliverability failures after the switch.
- Checking nameserver delegation: When transferring a domain between registrars or moving DNS management to a new provider, NS record lookups confirm whether the new nameservers have been delegated correctly. The SOA record's serial number shows whether the zone has been updated.
- Identifying the CDN or load balancer in front of a site: A CNAME pointing to a
.cloudfront.net,.fastly.net, or.cdn.cloudflare.nethostname reveals that the site uses a CDN. The A record returned will be a CDN edge node rather than the origin server's IP. - Auditing CAA records before SSL issuance: CAA records restrict which certificate authorities can issue SSL certificates for a domain. If a CAA record is set, any CA not listed will refuse to issue a certificate. Checking CAA records before requesting a certificate from a new CA avoids issuance failures.
- Troubleshooting propagation delays: After changing DNS records, different resolvers around the world hold cached copies for the duration of the old TTL. If your site is reachable from some locations but not others, checking the A record from multiple tools and comparing TTL values helps confirm whether propagation is in progress.
Standards and Further Reading
The Domain Name System is defined in RFC 1034 (concepts) and RFC 1035 (implementation). CAA records are specified in RFC 8659. The IANA maintains the official registry of DNS parameter values, including all record types, classes, and opcodes.
Frequently Asked Questions
What is a DNS lookup?
A DNS lookup queries the Domain Name System to retrieve records associated with a domain name. It translates human-readable hostnames into IP addresses and returns all record types stored at that domain, including A, AAAA, MX, NS, TXT, CNAME, SOA, and CAA records.
What DNS record types does HostChecker return?
HostChecker returns all major record types: A (IPv4 address), AAAA (IPv6 address), MX (mail exchange), NS (nameservers), TXT (SPF, DMARC, verification tokens), CNAME (aliases), SOA (zone authority), and CAA (certificate authority authorisation).
How do I check SPF and DMARC records?
SPF and DMARC records are stored as TXT records. Enter a domain name and the tool returns all TXT records, including the v=spf1 SPF record and the v=DMARC1 DMARC record on the _dmarc subdomain. These records are critical for email deliverability and anti-spoofing.
What does TTL mean in DNS results?
TTL (Time to Live) is the number of seconds a DNS resolver is allowed to cache a record before fetching a fresh copy. A short TTL (e.g. 300 seconds) means changes propagate quickly but increase load on DNS servers. A long TTL (e.g. 86400 seconds = 24 hours) reduces queries but slows propagation after a change.
Why might DNS results differ between resolvers?
Different resolvers can return different results because they cache records independently and clear that cache at different times. After a DNS change, cached records continue to be served until the TTL expires. Using an authoritative nameserver query instead of a recursive resolver eliminates this variation.
Can I look up DNS records for any domain?
Yes. HostChecker queries publicly accessible DNS records for any registered domain. Private or internal DNS zones that are not published to public resolvers are not accessible. The lookup is read-only and identical to any public DNS query.
How long does a DNS lookup take?
Most lookups complete in under two seconds. The time depends on the domain's DNS server response time, network latency, and whether the queried resolver has the records cached. Fresh (uncached) queries take slightly longer as they contact the authoritative nameservers.