DNS tools

DNS Lookup

Check A, AAAA, MX, NS, TXT, CNAME, SOA, CAA and other DNS records for a domain.

What is dns lookup?

DNS translates names into the information applications need to find websites and deliver email. Each record type answers a different question.

How to use this tool

  1. Enter the domain you want to check and review any options.
  2. Select Look up to submit your request.
  3. Read the result, inspect its source and copy or download the response if needed.

Understanding the results

Records
The answer for the record type you chose. An empty list means no record of that type exists, or the name itself does not exist.
Record type
Which question was asked. The DNS record types guide explains each one.
Source
The server’s own resolver for most types. DS and DNSKEY queries go to Google Public DNS over HTTPS.

Supported features and common uses

A and AAAA records identify IPv4 and IPv6 addresses. MX records route email, NS records identify nameservers and TXT records hold verification and policy text. Select a record type before submitting. DS and DNSKEY queries use Google DNS over HTTPS; other types use the server resolver.

Troubleshooting

Check the input format if validation fails. Public data may be missing or redacted, and upstream services can time out or rate limit requests. A failed lookup is not proof that a domain or website is unavailable.

How a DNS lookup works

When you type a name into a browser, your device asks a recursive resolver to find the answer. The resolver starts at the root servers, which point it to the servers for the top-level domain, such as .com. Those point it to the domain’s own authoritative nameservers, and they return the record. The resolver then keeps the answer for as long as the record’s TTL allows.

This tool runs that lookup from our server and shows the answer it gets. You choose the record type first because DNS answers one question at a time. Asking for an A record tells you nothing about a domain’s mail servers, and asking for MX tells you nothing about its website.

Which record type to choose

  • A or AAAA: the IPv4 or IPv6 address a name points to. Start here when a website will not load.
  • CNAME: whether a name is an alias for another name. This is common for www and for services hosted by another company.
  • MX: the mail servers that receive email for the domain.
  • NS: the authoritative nameservers, which tell you where the DNS is hosted.
  • TXT: SPF policies, domain verification codes and other text.
  • SOA: the zone’s serial number and timers. Check it to confirm that a change has been published.
  • CAA: the certificate authorities allowed to issue certificates for the domain.
  • SRV, PTR and NAPTR: service locations, reverse names and telephony rules.
  • DS and DNSKEY: the records behind DNSSEC.

Reading the answer

An answer with values means the record exists. An empty answer has two possible meanings, and it helps to tell them apart. The name may exist but have no record of the type you asked for, which DNS calls NODATA. Or the name may not exist at all, which DNS calls NXDOMAIN. A domain that has email but no website returns MX records and an empty A answer.

Aliases behave differently. If www.example.com is a CNAME, a lookup for its A record follows the alias and returns the addresses of the target. Ask for the CNAME type when you want to see the alias itself.

A name can also return several values of the same type. Large websites publish more than one address so that traffic is shared between servers, and that is normal.

Checking the same record from your own computer

You can run the same query locally and compare. On macOS and Linux, the command dig example.com MX prints the MX records, and adding +short trims the output to the values. On Windows, nslookup -type=MX example.com does the same job. If your computer and this tool disagree, one of them is probably reading an older cached answer.

To take caching out of the picture, ask an authoritative nameserver directly, for example dig @ns1.example.net example.com A. Whatever that server returns is the value the domain publishes right now.

Problems a DNS lookup helps you find

  • A website that still points to an old server because nobody updated the A record after a move.
  • Email that bounces because the MX records are missing, or point to a hostname that has no address.
  • A verification that keeps failing because the TXT record was added to the wrong name, such as the root of the domain when the service asked for a subdomain.
  • A certificate that will not issue because a CAA record names a different certificate authority.
  • A subdomain that behaves strangely because a wildcard record is answering in its place.

For each of these, look up the record type involved and compare the value with what your web host, mail provider or certificate authority told you to publish. Most DNS problems turn out to be a typo, a record on the wrong name or an old value that was never removed.

What this lookup does not do

The tool reads public DNS. It does not connect to the web server or mail server behind a record, so a correct record can still lead to a service that is switched off. It also shows one resolver’s view at one moment. To compare several resolvers after a change, use the DNS propagation checker, and to see whether a site responds, use the website status checker.

A worked example

Look up the MX type for a domain and you get a short list of mail servers with their priorities. Switch to TXT for the same domain and the answer usually includes a line that starts with v=spf1, along with verification strings added for other services. Switch to NS and you see where the DNS itself is hosted. Three lookups give a fair picture of how a domain’s email and DNS are arranged.

Terms used on this page

  • Record: one entry in a domain’s DNS zone.
  • Resolver: the server that finds answers on behalf of users.
  • Authoritative nameserver: the server that holds the real records.
  • NXDOMAIN: the answer that says a name does not exist.
  • Zone: all the records for one domain.

Learn more: DNS record types explained: A, AAAA, MX, TXT, CNAME and more.

Frequently asked questions

Good questions. Clear answers.
Why are no records returned?

A domain may exist without a record of the selected type. An empty answer is different from a resolver timeout.

Can DNS answers differ?

Caches, location and recent changes can cause resolvers to return different answers. Compare resolvers with the DNS propagation tool.

What is the difference between a DNS lookup and a WHOIS lookup?

A DNS lookup reads the records a domain publishes, such as its addresses and mail servers. A WHOIS or RDAP lookup reads the registration record held by the registry, such as the registrar and the expiry date. Use the domain lookup for registration details.

How long does a DNS change take to show up?

It depends on the TTL of the record that resolvers cached before the change. A record with a TTL of 300 seconds is replaced within five minutes. One with a TTL of 86400 can linger for a day.

Can I look up a subdomain?

Yes. Enter the full name, such as mail.example.com. Names that begin with an underscore are accepted too, because standards such as DMARC and DKIM publish records at names like _dmarc.example.com.

Why does the answer show several IP addresses?

A name can have more than one A or AAAA record. Large sites publish several addresses to spread traffic across servers, and many return a different set depending on where the question comes from.

What is a TTL?

The time to live is the number of seconds a resolver may keep a record before it asks again. It controls how quickly a change becomes visible to everyone else.

Does this tool query the authoritative nameservers?

No. Most record types are answered by the resolver our server uses, so you see what a typical recursive resolver returns. DS and DNSKEY questions go to Google Public DNS over HTTPS.

Which record holds my SPF policy?

A TXT record on the domain itself that starts with v=spf1. Choose TXT as the record type to see it, or use the SPF checker for an explanation of each part.

Can I look up records for a domain I do not own?

Yes. DNS records are public, and anyone can read them.