DNS Lookup

Enter a domain and a record type to see its DNS records.

Record types

A and AAAA give IPv4 and IPv6 addresses, MX lists mail servers, TXT holds text such as SPF records, NS lists name servers, CNAME shows aliases and SOA describes the zone.

How lookups are done

This tool asks Google Public DNS over HTTPS (dns.google), so the domain name you enter is sent to Google and an internet connection is required.

How to use it

  1. Enter a Domain.
  2. Choose the Record type.
  3. Press Lookup.

Common use cases

What the output looks like

Each answer is printed as one tab-separated line: the name, the TTL in seconds with an s suffix, the record type you selected, and the record data. A lookup of an MX record returns lines whose data starts with a preference number then the mail host, such as 10 mail.example.com.. TXT data is shown with its quotes. Hostnames end in a trailing dot, which is normal DNS notation for a fully qualified name.

The TTL is the number of seconds left that a resolver may cache the answer. If you query the same name twice, the number may differ because Google Public DNS counts down its cache. Low values like 60 or 300 mean changes spread quickly, and very high ones such as 86400 (a day) mean they will take much longer.

Understanding empty results

When there are no answers, the tool prints No <TYPE> records found for <domain>. and the status code from the response. Status 0 with no answer means the name exists but has no record of that type, for example an AAAA lookup for a host that has only IPv4. Status 3 (NXDOMAIN) means the name does not exist at all, which usually points to a typo or a domain that is not registered. Status 2 (SERVFAIL) often indicates a DNSSEC or nameserver problem.

Practical checks and limits

For email setup, look up MX to see which hosts receive mail, then TXT on the domain to find the SPF record, which starts with v=spf1. DKIM keys live under a selector name such as selector1._domainkey.example.com, which you can enter as the domain with type TXT. DMARC lives at _dmarc.example.com, also TXT.

Supported types are A, AAAA, MX, TXT, NS, CNAME and SOA only. There is no PTR (reverse lookup), CAA, SRV or DNSKEY, no trace from the root servers, and no way to choose another resolver or query an authoritative nameserver directly. Because answers come from a caching resolver, a record you changed minutes ago may still show the old value until the previous TTL has run out. To confirm a new record is live on your own nameserver, query that server directly with dig or nslookup.

Frequently asked questions

Which resolver does it use?

Google Public DNS over HTTPS.

Is the domain sent anywhere?

Yes, to Google's DNS service, so this tool needs an internet connection.

Why do results differ from my resolver?

Different resolvers can cache different answers.

Is it free?

Yes.

How do I check an SPF or DMARC record?

Choose TXT. For SPF look up the domain itself and find the line starting v=spf1. For DMARC enter _dmarc. followed by the domain.

What does status 3 mean?

NXDOMAIN: the domain name does not exist. Check for a typo or an unregistered domain. Status 0 with no records means the name exists but not for that type.

Can I look up an IP address's hostname?

No. Reverse (PTR) lookups are not among the supported record types.

Related tools

Explore all developer tools →