DNS Lookup |
A DNS lookup asks the internet's directory what a domain points to: A (IPv4) and AAAA (IPv6) records give its IP addresses, MX its mail servers, NS its nameservers, TXT its text records (SPF, verification codes) and CNAME its aliases.
DNS Record Types: What Each One Means
Each record type answers one question about the domain: where the website is (A/AAAA), where email goes (MX), who runs its DNS (NS).
| Type | Answers | Example | Go deeper |
|---|---|---|---|
| A | The IPv4 address of the name | 192.0.2.10 | Website to IP |
| AAAA | The IPv6 address | 2001:db8::10 | IPv6 guide |
| CNAME | This name is an alias of another name | www → example.netlify.app | CNAME lookup |
| MX | The mail servers that receive email, with priority | 1 smtp.google.com | MX lookup |
| NS | The nameservers that hold the domain's records | ada.ns.cloudflare.com | NS lookup |
| TXT | Free text: SPF, DMARC, DKIM, verification codes | v=spf1 include:_spf.google.com ~all | TXT lookup · SPF checker |
| SOA | Zone settings: primary nameserver, admin, serial, timers | ns1.example.com hostmaster.example.com 2026111001 … | NS health check |
| CAA | Which certificate authorities may issue SSL certificates | 0 issue "letsencrypt.org" | SSL checker |
| HTTPS | How browsers should connect: HTTP/3 support, IP hints, Encrypted Client Hello | 1 . alpn="h3,h2" ipv4hint=192.0.2.10 | HTTP/2 and HTTP/3 test |
| DS · DNSKEY | DNSSEC: the zone's public keys (DNSKEY) and their fingerprint at the parent zone (DS) | key tag 2371, algorithm 13 (ECDSA P-256/SHA-256) | DNSSEC button above |
| SRV | Host and port of a service (SIP, XMPP, Microsoft 365 apps) | _sip._tls.example.com → 0 5 443 sip.example.com | SRV button above |
| PTR | The hostname of an IP address (reverse DNS) | 8.8.8.8 → dns.google | Reverse DNS |
What is an A record?
The record that turns a name into an IPv4 address: example.com. 3600 IN A 192.0.2.10. Browsers use it to connect. A name can have several A records; clients pick one, which spreads the load.
What is an SOA record?
The "start of authority": one per zone, with the primary nameserver, the admin's email (first dot = @), the serial (the zone's version number) and the timers secondaries and resolvers follow, including how long "not found" answers are cached.
What is a CAA record?
It restricts which certificate authorities may issue SSL certificates for the domain (RFC 8659). Authorities must check it before issuing; iodef gives an address for violation reports.
What is an HTTPS record?
A newer record (RFC 9460, 2023) that tells browsers how to connect before they even try: which protocols the site speaks (alpn="h3,h2" means HTTP/3 and HTTP/2), IP address hints, and the key for Encrypted Client Hello (ech=), which hides the site name from the network. Chrome, Firefox and Safari ask for it; a site without one simply works the classic way.
What are DS and DNSKEY records (DNSSEC)?
DNSSEC signs a domain's records so resolvers can detect forged answers. The domain's nameservers publish its public keys as DNSKEY records; the parent zone (for example .com) publishes a fingerprint of the key-signing key as a DS record, set at your registrar. DNSSEC works only when the two match: choose DNSSEC above and we compare their key tags and algorithms (we don't validate the signatures themselves). A DS that matches no key is worse than no DNSSEC at all: validating resolvers refuse to answer for the domain.
What is an SRV record?
It tells clients which host and port run a service, on a name like _service._proto.example.com: priority, weight, port, target. Choose SRV above and type the full service name.
Is My DNS Change Live?
Compare resolvers: if Google, Cloudflare and Quad9 all show the new value, most people see it; if one still shows the old value, wait for its TTL to run out.
- Check the source: look up the record with Authoritative DNS. If it's still old, the change isn't published: check you edited the DNS provider your nameservers point to.
- Compare resolvers: click "Compare all DNS servers" after a lookup. Each server is marked same or different from the authoritative answer.
- Wait out the TTL: a resolver that still has the old value drops it after the TTL it received (shown in the result). Your own computer and browser cache too:
ipconfig /flushdnson Windows (every system).
"DNS propagation" is really caches expiring: no server pushes the change. That's why lowering the TTL a day before a migration makes the switch fast. To see the answer people get in about 20 countries, use the DNS propagation checker.
How a DNS Lookup Works
A resolver asks the root servers, then the .com servers, then the domain's own nameservers, and caches the answer for the TTL.
New to DNS? What DNS is explains DNS servers, which one to use and how to change it.
Your device asks a recursive resolver (your ISP's, or a public one like 8.8.8.8). If it has no cached answer, it walks the tree: the root servers point to the .com servers, which point to the domain's authoritative nameservers, which give the answer. The resolver caches it for the TTL and serves everyone else from cache. A recursive answer can be up to one TTL old; an authoritative answer is always current.
Do it yourself
How to Use the nslookup Command and dig
Type nslookup -type=mx example.com on Windows or dig example.com mx on macOS and Linux.
Windows Command Prompt (nslookup)
nslookup example.com
nslookup -type=mx example.com
nslookup -type=txt example.com 1.1.1.1
Add a resolver IP at the end to ask a specific server, as the menu above does. Without it, nslookup uses your computer's resolver, which may have the old answer cached.
Windows PowerShell
Resolve-DnsName example.com -Type A
Resolve-DnsName example.com -Type MX -Server 8.8.8.8
Resolve-DnsName example.com -Type CAA
Mac / Linux dig
dig example.com
dig example.com mx +short
dig @1.1.1.1 example.com txt
dig +trace example.com
+short prints only the values; +trace shows the root → TLD → nameserver walk. Avoid dig example.com any: since RFC 8482 many servers answer ANY with almost nothing, which is why "All records" here asks each type separately. "Raw (dig)" in the result shows our answer in the same format.
How This DNS Lookup Works
| Resolvers | Google 8.8.8.8, Cloudflare 1.1.1.1, Quad9 9.9.9.9, OpenDNS 208.67.222.222, DNS4EU 86.54.11.100, AdGuard 94.140.14.140, Control D 76.76.2.0, Yandex 77.88.8.8; or all of them side by side with "Compare". To use one on your own device: Best Free Public DNS Servers |
| Authoritative mode | Finds the zone's nameservers (walking up from the name), resolves them, and asks them directly |
| Record types | "All records" = A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and HTTPS, each asked separately (RFC 8482); or one type, including SRV and SPF; "DNSSEC" = DNSKEY from the domain's nameservers and DS from the parent zone, with a key tag check (signatures aren't validated) |
| At a glance | Providers recognised from record values; the network of each IP from the GeoLite2-ASN database |
| Cache | None: every query is live, over UDP with a 3-second timeout |
| Runs on | Our server in the US (AWS, N. Virginia) |
| What we keep | Lookups are not saved. Our server and Cloudflare keep standard access logs. |
Frequently Asked Questions
How do I check the DNS records of a domain?
How do I do an nslookup online?
nslookup from our server, through the resolver you choose, and "Raw (dig)" shows the answer in dig format. Choose a record type to do the same as nslookup -type=mx example.com.What does the nslookup command do?
nslookup example.com returns its IP addresses, nslookup -type=mx example.com its mail servers, and a server at the end, as in nslookup example.com 1.1.1.1, asks that resolver instead of your own. This page runs the same queries without a terminal.How do I use a specific DNS server with nslookup?
nslookup example.com 1.1.1.1 asks Cloudflare's resolver instead of your default DNS server, and nslookup -type=mx example.com 8.8.8.8 asks Google Public DNS for the MX records. Without a server, nslookup uses your computer's default one.Why is my DNS change not showing?
What is the difference between a recursive resolver and an authoritative name server?
What does TTL mean?
How do I check if DNSSEC is enabled for a domain?
What is a CAA record?
0 issue "letsencrypt.org". Without CAA records, any authority may issue one. The lookup names the authorities for you.Next steps