DNS lookup

Short answer

How do I look up DNS records for a domain?

You look up DNS records by asking a DNS resolver for a certain record type for a name, for example MX for company.com or TXT for _dmarc.company.com. Enter the domain above and choose the record type, and we show the answer from public DNS with value and TTL. For email, MX, TXT and PTR are the most important.

Look up A, AAAA, MX, TXT, NS, SOA, CAA, CNAME, PTR and other records for a domain or an IP address.

The record types

  • A and AAAA point the domain to IPv4 and IPv6 addresses.
  • MX shows who receives email.
  • TXT is used for SPF, DMARC, DKIM and verifications from services.
  • NS and SOA show who hosts DNS for the domain.
  • CAA decides who may issue certificates for the domain.
  • PTR is the reverse lookup from IP address to name. It matters for mail servers.

About the answers

The answers are fetched from public DNS using DNS over HTTPS. TTL shows how many seconds the answer may be cached, and therefore how long a change takes to reach everyone.

Useful lookups for email

  • TXT on the domain gives the SPF record, which starts with v=spf1.
  • TXT on _dmarc.company.com gives the DMARC record.
  • TXT or CNAME on selector1._domainkey.company.com gives the DKIM key for Microsoft 365.
  • TXT on _mta-sts.company.com and _smtp._tls.company.com gives MTA-STS and TLS-RPT.

NXDOMAIN means that the name does not exist. An empty answer means that the name exists but has no records of the type you asked for.

Questions and answers

Why do I not see the change I just made?

The old answer may be cached until the TTL expires. Wait a little and check again.

How do I look up a PTR record?

Choose PTR and enter the IP address. We convert the address to the right lookup ourselves.

Who answers the lookup?

A public resolver that asks the name servers of the domain. If you want to see whether all resolvers have the same answer, use DNS propagation.