English

DNS Lookup

Enter a domain name to see its DNS records, such as A, MX, and TXT, grouped by type and shown with their TTLs. Enter an IP address to look up its hostname with a reverse (PTR) lookup.

You can also compare the results from Cloudflare (1.1.1.1), Google Public DNS (8.8.8.8), and Quad9 (9.9.9.9). Use it to check whether a change has taken effect after moving a server or updating your email settings.

Examples:example.com, www.github.com, 1.1.1.1

How to use

  1. Enter a domain name (e.g. example.com) or an IP address. If you paste a URL or an email address, the domain name is extracted from it.
  2. Choose the record type. “All” looks up A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, and HTTPS at once.
  3. To check whether a change has taken effect, select “Compare with Google Public DNS and Quad9”.
  4. To check that your domain is not mistakenly blocked by security or family DNS, select “Check whether filtering DNS blocks it”.
  5. Press “Look up” to see the records by type. Copy the result URL to share the same lookup.

SRV (e.g. _sip._tcp.example.com) and PTR are not included in “All”, so choose them as the record type. When you enter an IP address, a reverse (PTR) lookup is run regardless of the selected type.

DNS record types

A
The IPv4 address for the domain name. It points to the server for a website or service.
AAAA
The IPv6 address for the domain name.
CNAME
An alias. It points to another domain name and uses that name’s records. Often used with CDNs and external services.
MX
The servers that receive email, with their priority. Servers with a lower number are used first.
NS
The DNS servers that manage the domain’s records (authoritative name servers).
TXT
Free-form text. Used for email sender authentication such as SPF, DMARC, and DKIM, and for proving domain ownership to services.
SOA
Administrative information for the zone: the primary name server, the administrator’s email address, the serial number, refresh intervals, and more.
CAA
Specifies which certificate authorities may issue SSL/TLS certificates for the domain.
HTTPS
Tells browsers which protocols (such as HTTP/3) and IP address hints can be used, so they can connect faster (a type of SVCB record).
SRV
The hostname and port for a specific service. Look it up with a name like “_service._protocol.domain”.
PTR
A reverse lookup record that maps an IP address to a hostname.

TTL and how long changes take

TTL (Time To Live) is the number of seconds a DNS result may be cached. The TTL shown in the results is the time left in the cache of the resolver that answered, so it goes down each time you look it up.

After you change a record, resolvers may keep using the old result until its TTL runs out. This is often called “DNS propagation”. Lowering the TTL before a migration lets the switch take effect sooner.

“Compare with Google Public DNS and Quad9” shows, for each type, whether the three resolvers return the same values. TTLs naturally differ between resolvers, so they are not compared. Note that sites that change their answers for load balancing or by the visitor’s region (such as CDNs) may return different A and AAAA values even when nothing has changed.

Filtering DNS and blocking checks

Filtering DNS is public DNS that stops dangerous or adult sites from resolving. Cloudflare’s 1.1.1.2 blocks malware, 1.1.1.3 blocks malware and adult content, and Quad9 (9.9.9.9) blocks domains it considers malicious. These services are used on some home and office networks, and people using them cannot reach a blocked domain.

The check queries the A record from each filtering DNS and from the same provider’s unfiltered DNS (1.1.1.1 and 9.9.9.10) and compares the two. The reason for a block is read from the Extended DNS Error (EDE) the DNS returns. The check always uses the A record regardless of the selected type, and is not run for IP addresses.

If your domain is blocked by mistake, you can report it to each provider (Cloudflare through domain categorization feedback on Cloudflare Radar, Quad9 through its support contact). Also make sure your site has not been compromised or used to distribute malware.

How lookups work and notes

Lookups are sent from this site’s server (Cloudflare Workers) to Cloudflare’s public DNS (1.1.1.1) over DNS over HTTPS. When comparing, Google Public DNS (8.8.8.8) and Quad9 (9.9.9.9) are queried as well. Quad9 blocks domains it considers malicious, so only Quad9 may report them as nonexistent (NXDOMAIN). When checking for blocking, Cloudflare (1.1.1.2 and 1.1.1.3) and Quad9 (9.9.9.10) are queried as well.

Because these are results seen from public DNS, names used only inside a company network and entries in your computer’s hosts file are not reflected. Reverse lookups of private IP addresses are not possible.

The DNSSEC status shows whether the resolver was able to validate the signatures (the AD flag). The names you enter and the results are not stored.

FAQ

What is a DNS record?

A setting that links a domain name to information such as IP addresses, mail servers, and authentication data. Records are registered on the DNS servers that manage the domain, and browsers and mail servers connect using the results of their lookups.

Why do my results differ from nslookup or dig on my computer?

Because a different resolver is being asked. Commands on your computer usually ask your ISP’s or company’s DNS server and return its cached result. This tool asks Cloudflare’s (and Google’s and Quad9’s) public DNS. Right after a change, results can differ between resolvers until the TTL runs out.

Why do I still see the old value after making a change?

Because the resolver has cached the result from before the change. The cache expires once the TTL has passed. Check the settings on the authoritative name servers (NS), then look it up again after the TTL has passed.

What happens when I enter an IP address?

A reverse (PTR) lookup finds the hostname assigned to that IP address. Both IPv4 (in-addr.arpa) and IPv6 (ip6.arpa) are supported. Reverse records are set by the provider that manages the IP address, so they may not exist.

Why can’t I get all record types at once (ANY)?

Because many DNS servers restrict answers to ANY queries (RFC 8482). “All” looks up the 9 main types one by one and shows them together.

How do I check my SPF and DMARC settings?

SPF is set in the TXT record of the domain name, and DMARC in the TXT record of “_dmarc.domain”. This tool labels TXT records that start with v=spf1 or v=DMARC1. For DKIM, look up “selector._domainkey.domain” with TXT as the record type.

Why can only some people not open my site?

Your domain may be blocked by a security or family DNS. Select “Check whether filtering DNS blocks it” to see whether Cloudflare (1.1.1.2 and 1.1.1.3) and Quad9 block it. A DNS change may also still be taking effect, so compare the results with Google Public DNS and Quad9 as well.