Log in Sign up
DNS lookup

DNS record lookup: A, AAAA, CNAME, MX, NS, TXT and SOA

Enter a domain or paste a URL to check its DNS records: IPv4 and IPv6 addresses, aliases, mail servers, name servers, TXT records and the SOA of the zone. Your browser sends all seven queries at once to a public resolver.

Your browser sends the query straight to Cloudflare DNS, with Google DNS as a fallback. Our server does not see it.

A request travels from a laptop through layers of DNS servers to the target server

How a DNS lookup works and how to read the answer

A DNS lookup asks a resolver what a domain name points to. One record lookup here covers A, AAAA, CNAME, MX, NS, TXT and SOA, so you see the addresses, mail servers, name servers and text records of a domain on one screen. A CNAME table shows up when the name is an alias.

Answers come from the cache of a public resolver, the same kind of cache your ISP or office network keeps. After you change a record, you and your visitors see the new value once the old TTL runs out. You can paste a full URL into the field: the tool drops the scheme and the path and looks up the host name.

Each result table has four columns. Name is the host the record belongs to, Type is the record type, and TTL shows how many seconds the resolver may still serve the record from cache. Value holds the data: an IP address, a host name or a text string. A row reading example.com, A, 300 s, 203.0.113.10 means a browser that asks for example.com connects to 203.0.113.10, and the resolver reuses that answer for up to 300 more seconds.

Some record types get extra formatting. MX hosts appear sorted by priority, with the number in a badge before each host. The SOA value splits into labeled fields: primary server, admin mailbox, serial, refresh, retry, expire and negative TTL. TXT records that start with v=spf1, v=DMARC1, v=DKIM1, google-site-verification or yandex-verification get a tag, so you can spot an SPF record or a verification token in a long list.

If a query returns no rows, a note takes the place of the table and gives the reason: the domain does not exist (NXDOMAIN), the name has no records of that type, or the resolver returned an error code. A domain that returns NXDOMAIN for every type gets one notice instead of seven, and the page skips an empty CNAME result without a note.

If you know nslookup or dig, read each row here as one line from the ANSWER section of dig output. The page asks for each type on its own and skips the ANY query, since many servers answer ANY with a minimal reply under RFC 8482.

The address bar keeps the domain as ?q=, and so do the record type buttons above the field. Bookmark a lookup or send the link to your host's support team: opening it runs the query again.

DNS record types at a glance

When to check DNS records

  • A site does not open for you, and you want to see where the domain points right now
  • You moved hosting, mail or DNS provider and want to confirm the new records are live
  • You prepare a domain for a mail campaign and check its MX hosts and SPF record
  • You add a proxy host or an API to a whitelist and need its current address
  • Your host's support asks for the current records, and you send them a link to the result

Questions about DNS records

01What is a DNS lookup and how does it work?

Your device asks a resolver for a record of a name, such as the A record of example.com. If the resolver has no cached copy, it goes from the root servers to the .com servers and then to the name servers of the zone, gets the record and caches it. This tool sends the same query over DNS over HTTPS and shows each record with its TTL.

02Which records does the full lookup show?

Seven types at once: A, AAAA, CNAME, MX, NS, TXT and SOA. PTR works on IP addresses, so it has its own page, and the TXT page adds the DMARC record at _dmarc. For CAA and DNSSEC, run the domain health check.

03Why do I see different DNS results than my ISP or someone in another country?

Your ISP's resolver may still hold an older answer in cache until its TTL runs out. Domains on a CDN or GeoDNS return different addresses by region, so a resolver in another country gets other records. The domain health check compares the A record across four public resolvers side by side.

04How long does a DNS change take to propagate?

A resolver that cached the old record serves it until the cached copy expires, so the wait is at most the old TTL. A change of name servers at the registrar takes longer. Resolvers cache the NS records of the parent zone, and the .com registry sets their TTL to 172800 seconds, two days.

05What does the TTL in the answer mean?

The number of seconds a resolver may keep the record in cache. The number counts down while the copy sits in cache, so two lookups a minute apart can show different TTLs. Lower the TTL to 300 a day before you move a site or mail. After the switch, resolvers that follow the TTL drop the old answer within 300 seconds.

06What do NXDOMAIN, SERVFAIL and an empty answer mean?

NXDOMAIN means the name does not exist in DNS: check the spelling and whether the domain has expired. An empty answer means the name exists but has no records of the requested type, which is normal for AAAA on a host without IPv6. SERVFAIL shows here as code 2: the resolver could not get a valid answer from the name servers of the zone. The usual causes are name servers that do not respond and a DNSSEC signature that fails validation.

07Which DNS server answers the lookup?

Cloudflare's public resolver, 1.1.1.1, which your browser reaches over DNS over HTTPS. If a query to Cloudflare fails, the page repeats it through Google Public DNS. The status line above the results names the resolver and the response time in milliseconds. This page has no resolver picker; the domain health check compares four.

08How do I run the same query with nslookup or dig?

Ask for one type at a time: nslookup -type=mx example.com 1.1.1.1 or dig @1.1.1.1 example.com mx +noall +answer. The dig command prints one line per record with the same name, TTL, type and value you see in the tables here. The 1.1.1.1 part sends the query to Cloudflare, the resolver this page asks first. Without it, both commands use the resolver your system is set to, and its cache may hold older records.

09Do you log the domains I check?

No. Your browser sends the query straight to Cloudflare DNS or Google DNS, so our server never receives the domain you type in the field. A shared link with ?q= reaches our server with the domain in the page address, and we do not log those requests either.

Pricing Grab a free hour