Saved

Press the star next to a tool's name to save it.

All my tools

DNS Lookup

Use this DNS lookup to check A, AAAA, CNAME, MX, TXT, NS, SOA and CAA records for any domain through Cloudflare or Google DNS over HTTPS. The domain is sent to the resolver you pick.

Enter a domain or a web address. The domain is sent to the resolver you choose so it can answer, and results can be cached, so a recent change may not show yet.

Unlike most tools here, this one sends the domain you type to the resolver you pick (Cloudflare or Google) to get an answer. Nothing else is sent.

DNS records

Looking up…

Enter a domain and press Look up.

This DNS lookup tool asks a public DNS resolver for a domain’s records and shows the answer in plain rows. Choose A, AAAA, CNAME, MX, TXT, NS, SOA or CAA, pick Cloudflare or Google as the resolver, and see the status, the time to live and the data for each record. It is useful for checking mail setup, confirming a new address after a change, and finding out who runs a domain’s name servers.

How to use the DNS lookup

  1. Type a domain such as example.com. A full web address works too, and the tool keeps just the host name.
  2. Choose a record type.
  3. Choose a resolver, Cloudflare or Google.
  4. Press Look up and read the rows, or copy them as text.

How the lookup works

Browsers cannot send ordinary DNS packets, so this page uses DNS over HTTPS. RFC 8484 defines it: each DNS query and response is carried in an HTTPS exchange, which keeps on-path devices from interfering and lets web pages reach DNS. [1] Both resolvers also offer a simple JSON form. Cloudflare answers at cloudflare-dns.com/dns-query when the request has an accept header of application/dns-json, and takes a name and a type. [2] Google Public DNS answers at dns.google/resolve with the same two parameters. [3] Cloudflare notes that its JSON format has no formal RFC and may change, which is why this tool checks the shape of each reply.

Record types explained

TypeWhat it holds
AThe IPv4 address of a host
AAAAThe IPv6 address of a host
CNAMEAn alias that points to another name
MXMail servers, each with a preference where the lowest value is tried first
TXTFree text, used for email policies and ownership checks
NSThe name servers that are authoritative for the zone
SOAStart of authority: primary server, contact, serial number and timers
CAAWhich certificate authorities may issue certificates for the domain

RFC 1035 defines the A, NS, CNAME, SOA, MX and TXT records. [4] CAA records have a flags field, a tag and a value, and the tags include issue, issuewild and iodef. [5]

Reading the status

Every answer carries a response code. NOERROR means the lookup worked, which can still mean there are no records of the type you asked for. SERVFAIL means the resolver could not get an answer, and NXDOMAIN means the name does not exist. [4] The page also shows whether the resolver says the answer was DNSSEC validated. Cloudflare describes this as every answer record being verified, and Google as all response data being validated. [2] [3]

TTL and caching

Each record has a time to live in seconds. Resolvers keep an answer until its TTL runs out, so a change you made a minute ago may not appear yet, and the TTL shown counts down on repeat lookups. If a result looks stale, try the other resolver or wait for the TTL to pass.

DNS lookup examples

  • MX for a company domain shows its mail servers and their preference numbers.
  • TXT often shows SPF policies and site verification codes.
  • CNAME on a www host shows the name it points to.
  • CAA shows which certificate authorities are allowed to issue certificates.
  • NS shows the name servers, which helps when moving a domain.

When to use a DNS lookup

Run a lookup after you change a record, to confirm the new value is live. Check MX records when mail does not arrive, because the preference numbers show the order in which servers are tried. Read TXT records to confirm an SPF policy or a site verification code was published. Look at NS and SOA records when you move a domain between hosts, since they show who answers for it and which serial number the zone has reached. CAA records matter before you order a certificate, because they say which authorities may issue one.

Choosing a resolver

Both resolvers are public and fast, and most answers agree. They cache independently, so one may show a new value a little before the other. If they disagree, the difference usually ends once the TTL expires. Choose either one and switch to the other for a second opinion. The tool works for internationalized names too, because it converts them to their ASCII form before asking.

What this tool does not do

It does not query a domain’s own authoritative servers directly, and it does not show reverse lookups, zone transfers or full DNSSEC chains. It reports what a public resolver returns, which is what most visitors to your site will see. For one-off checks of mail, web hosting and certificates, that is usually exactly what you need.

Privacy

This is not an offline tool. To answer, the page sends the domain name you type to the resolver you choose, Cloudflare or Google, using an ordinary HTTPS request from your browser. Their privacy policies apply to that request. The page does not send anything else, and your lookups are not stored on our server.

Common mistakes

  • Looking up a web address with a path. Only the host name matters, and the tool strips the rest.
  • Asking for the wrong type. A name with a CNAME has no A record of its own.
  • Expecting instant changes. Cached answers can be out of date until their TTL ends.
  • Reading NOERROR with no records as failure. It only means there is nothing of that type.

What next

Use this often? Add DNS Lookup to your Home screen.

Frequently asked questions

What is a DNS lookup?

A DNS lookup asks a resolver for the records stored for a domain name, such as its IP address, mail servers or text records.

Does this DNS lookup send my domain to a server?

Yes. The domain is sent to the resolver you pick, Cloudflare or Google, so it can answer. Nothing else is sent, and nothing is stored by this site.

Why do I see no records for a type?

The domain may simply have no record of that type. A status of NOERROR with no records means the name exists but holds nothing of that type.

Why is my recent DNS change not showing?

Resolvers cache answers until the time to live runs out. Wait for the TTL to pass, or try the other resolver.

What does NXDOMAIN mean?

NXDOMAIN means the domain name does not exist. Check the spelling and that the domain is registered.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Developer Tools