DNS Lookup

See every DNS record of a domain, live, from the resolver you choose.
Record Type

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).

DNS record types A, AAAA, CNAME, MX, TXT, NS, SOA and CAA with an example of each and their TTL.
Each record type is one field of the domain's contact card. (Documentation addresses.)
TypeAnswersExampleGo deeper
AThe IPv4 address of the name192.0.2.10Website to IP
AAAAThe IPv6 address2001:db8::10IPv6 guide
CNAMEThis name is an alias of another namewww → example.netlify.appCNAME lookup
MXThe mail servers that receive email, with priority1 smtp.google.comMX lookup
NSThe nameservers that hold the domain's recordsada.ns.cloudflare.comNS lookup
TXTFree text: SPF, DMARC, DKIM, verification codesv=spf1 include:_spf.google.com ~allTXT lookup · SPF checker
SOAZone settings: primary nameserver, admin, serial, timersns1.example.com hostmaster.example.com 2026111001 …NS health check
CAAWhich certificate authorities may issue SSL certificates0 issue "letsencrypt.org"SSL checker
HTTPSHow browsers should connect: HTTP/3 support, IP hints, Encrypted Client Hello1 . alpn="h3,h2" ipv4hint=192.0.2.10HTTP/2 and HTTP/3 test
DS · DNSKEYDNSSEC: 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
SRVHost and port of a service (SIP, XMPP, Microsoft 365 apps)_sip._tls.example.com → 0 5 443 sip.example.comSRV button above
PTRThe hostname of an IP address (reverse DNS)8.8.8.8 → dns.googleReverse 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.

Four DNS resolvers answer the same question; three show the new IP and one still shows the old IP until its cache expires.
Example: one resolver still has the old answer in its cache. (Documentation addresses.)
  1. 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.
  2. Compare resolvers: click "Compare all DNS servers" after a lookup. Each server is marked same or different from the authoritative answer.
  3. 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 /flushdns on 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.

Diagram: a resolver such as 8.8.8.8 asks the root servers, then the .com servers, then the domain name server, which answers example.com A 192.0.2.10 with a TTL of 3600
Each server knows who to ask next; the answer is then cached for its TTL. (Documentation addresses.)

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

ResolversGoogle 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 modeFinds 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 glanceProviders recognised from record values; the network of each IP from the GeoLite2-ASN database
CacheNone: every query is live, over UDP with a 3-second timeout
Runs onOur server in the US (AWS, N. Virginia)
What we keepLookups are not saved. Our server and Cloudflare keep standard access logs.

Frequently Asked Questions

How do I check the DNS records of a domain?
Type the domain above, keep "All records" selected and click Lookup. You'll see its A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and HTTPS records with their TTL, and a one-line explanation of what each says about the domain.
How do I do an nslookup online?
Use this page: it runs the same kind of query as 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?
It asks a DNS server for a domain's records from the command line, on Windows, macOS and most Linux systems: 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?
Add the server after the name: 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?
Resolvers keep the old answer until its TTL runs out. Choose Authoritative DNS to see the new value at the source, or click "Compare all DNS servers" to see which resolvers still have the old one. If the authoritative answer is still old, the change wasn't saved at your DNS provider, or you edited the wrong provider (check the nameservers).
What is the difference between a recursive resolver and an authoritative name server?
A recursive resolver (8.8.8.8, 1.1.1.1) finds answers for you by asking other servers, and caches them. The authoritative nameserver is the one that holds the domain's records: its answer is the source of truth.
What does TTL mean?
Time to live: how many seconds resolvers may keep an answer before asking again. 3600 means one hour, 86400 one day. Lower it a day before a planned change so the new value spreads faster.
How do I check if DNSSEC is enabled for a domain?
Choose DNSSEC above and look up the domain. You'll see its DS record (at the parent zone) and DNSKEY records (on its nameservers), and whether they match. No DS record means DNSSEC isn't active; a DS that matches no key breaks the domain for validating resolvers.
What is a CAA record?
It lists which certificate authorities may issue SSL certificates for the domain, for example 0 issue "letsencrypt.org". Without CAA records, any authority may issue one. The lookup names the authorities for you.

Next steps

Related Tools

MX Lookup
Mail servers, their IPs, reverse DNS and SPF.
NS Lookup
DNS provider and nameserver health check.
TXT Record Lookup
TXT records labelled, plus DMARC and DKIM.
SPF Record Checker
Validate SPF: include tree, 10-lookup limit, IP test.
CNAME Lookup
Follow an alias chain to its final IP.
Reverse DNS Lookup
The hostname of an IP address.
DNS Speed Test
Which public DNS server answers fastest from your connection.

Related Guides

Guide What Is DNS?
DNS servers explained, which resolver to use, how to change it and fix slow lookups.