Guide
How to use the DNS lookup tool
- Enter a domain name such as
example.com. You can paste a full URL and we will extract the hostname. - Pick a record type, or leave it on All common to query A, AAAA, CNAME, MX, NS, TXT, SOA, CAA and HTTPS records at once. SRV, PTR, DS and DNSKEY are in the list too.
- Press Look up. Each record type gets its own card with a table of answers.
- Use the links above the results to check propagation, open the domain's WHOIS record or test its email security.
To look up a PTR record, enter an IP address and choose PTR, or use our reverse DNS tool. For SRV records, include the service and protocol in the name, for example _sip._tcp.example.com.
Queries are sent over encrypted DNS-over-HTTPS to Cloudflare's public resolver (1.1.1.1), so you see what most of the internet sees, not a cached copy from your own ISP.
Reading the results
Each card shows a badge and, when records exist, a table with four columns: Name (the name the record belongs to), Type, TTL and Value, with a copy button next to each value. For a typical small website the A and MX cards might look like this:
| Name | Type | TTL | Value |
|---|---|---|---|
| example.com | A | 300 | 192.0.2.10 |
| example.com | MX | 3600 | 10 mail.example.com |
| example.com | MX | 3600 | 20 backup-mail.example.net |
- TTL is the remaining cache time in seconds: how long resolvers may keep this answer before asking again. A value of 300 means an edit can take up to five minutes to reach users of this resolver.
- MX values start with a priority. Lower numbers are tried first, so mail goes to
mail.example.comand only falls back to the server with priority 20. - CNAME rows inside other cards are normal. If you look up the A record of
www.example.comand it is an alias, the card shows the CNAME and then the A record it leads to. - "N found" means records exist. "NOERROR – no MX records" means the name exists but has no record of that type. NXDOMAIN means the name does not exist at all. "Resolver did not respond" means the query failed; try again.
DNS record types at a glance
| Type | What it does | Example value |
|---|---|---|
| A | Maps a name to an IPv4 address | 192.0.2.10 |
| AAAA | Maps a name to an IPv6 address | 2001:db8::10 |
| CNAME | Alias pointing one name at another | www → example.com |
| MX | Mail servers for the domain, with priority | 10 mail.example.com |
| NS | Authoritative name servers | ns1.example.net |
| TXT | Free text: SPF, DMARC, domain verification | v=spf1 -all |
| SOA | Zone metadata: primary server, serial, timers | ns1.example.net. admin.example.com. 2026101301 … |
| CAA | Which certificate authorities may issue TLS certificates | 0 issue "ca.example.net" |
| SRV | Location of a service (host and port) | 10 5 5060 sip.example.com |
| PTR | Reverse mapping from IP to name | host.example.com |
| DS / DNSKEY | DNSSEC keys and delegation signer | — |
| HTTPS | Connection hints such as HTTP/3 and ECH | 1 . alpn="h3,h2" |
For a deeper explanation with zone file examples, read DNS record types explained.
Troubleshooting with DNS lookups
- Website not loading after a move? Check the A/AAAA records point at the new server, then use the propagation checker to see if resolvers worldwide have caught up.
- Email bouncing or landing in spam? Confirm the MX records, check that there is exactly one TXT record starting with
v=spf1, and test SPF, DKIM and DMARC with the email security checker. The MX lookup also names the mail provider. - Domain verification failing? Services such as Google Search Console or Microsoft 365 ask you to add a TXT record. Look up TXT: if your value is not there, it was added to the wrong zone or under the wrong name.
- Certificate cannot be issued? If the domain has CAA records, your certificate authority must be listed in one of them.
- NXDOMAIN? The name does not exist: check the spelling, whether the domain has expired (WHOIS), and whether NS records are set at the registrar.
- SERVFAIL? Often a broken DNSSEC signature or unreachable authoritative servers. The DNSSEC checker shows whether the chain of trust is valid.
Limits and caching
You see one resolver's view. After you change a record, Cloudflare may keep serving the old answer until its TTL runs out, and other resolvers have their own caches; that is what the propagation checker is for. We also keep each answer for 30 seconds, so reload after a short wait if you have just made a change. The tool reads public DNS only: it cannot see records on your local network, in your hosts file or in split-horizon setups that give different answers inside a company. Each visitor can run up to 30 lookups a minute.
Privacy
The domain name you enter is sent from our server to Cloudflare's resolver. Your own IP address is not passed on. To see how the tool is used, we keep the domains looked up in a usage log for up to 90 days, together with your IP address.
Frequently asked questions
Why do I see different results from my own computer?
Your computer may use your ISP's resolver, which can hold an older cached answer until the TTL expires. You can also have overrides in your hosts file.
Why are there no CNAME records for my root domain?
The DNS standard forbids a CNAME at the zone apex because it would conflict with the required SOA and NS records. Many DNS hosts offer ALIAS or "CNAME flattening" instead.
How do I look up DNS from the command line?
Use nslookup -type=MX example.com on Windows or dig example.com MX +short on macOS and Linux.
How long do DNS changes take?
Usually no longer than the old record's TTL, which is often between five minutes and a day. Name server changes at the registrar can take up to 48 hours because the TLD's own records are cached longer.
How do I find a domain's mail server?
Choose MX and press Look up. The record with the lowest priority number is the main mail server.
How do I check a domain's SPF record?
Choose TXT and look for the value starting with v=spf1. A domain should have only one; two SPF records make both invalid.
Updated
Comments
Share a tip, ask a question or tell others how the tool worked for you.