failover.io
  1. Home
  2. Free tools
  3. DNS lookup

DNS lookup

Check the DNS records of any domain from Cloudflare or Google, with TTLs, or compare both after a change.

The lookup runs in your browser and asks a public resolver over DNS-over-HTTPS, so you see what the rest of the internet sees, not what your own network or computer has cached. For a PTR record, enter an IP address and it is turned into the reverse name for you.

DNS record types

RecordWhat it holds
AThe IPv4 address the name points to.
AAAAThe IPv6 address the name points to.
CNAMEAn alias: this name follows another name, and that name's records answer instead.
MXThe mail servers that receive email for the domain, with a priority. The lowest number is tried first.
TXTFree text, mostly for checks by other services: SPF, DKIM, DMARC and domain verification.
NSThe name servers that hold the domain's records. Changing them moves the whole zone to another DNS host.
SOAZone settings: the main name server, the admin contact, a serial number and refresh timers.
CAAWhich certificate authorities may issue SSL certificates for the domain.
SRVHost and port for a service, used by protocols like SIP and XMPP. The name looks like _service._tcp.example.com.
PTRReverse DNS: the name that belongs to an IP address. Mail servers check it.

Reading the result

You seeWhat it means
Records with a TTLThe answer, and how many seconds resolvers may cache it. A change can take up to the old TTL to reach everyone.
No records of this typeThe domain exists, but has no record of this type (NOERROR with an empty answer).
Domain doesn't existNXDOMAIN: no such name. A typo, a missing record or an expired domain.
Server failureSERVFAIL: the resolver couldn't get an answer. Often a broken DNSSEC setup or name servers that don't respond.
DNSSEC validatedThe answer is signed and the signature checked out.

When Cloudflare and Google disagree

Right after you change a record, resolvers that cached the old one keep returning it until its TTL runs out. Pick "Compare both" to see whether the change has reached both. If one still shows the old value, wait for the TTL; there is nothing to fix. If both show a value you didn't set, check the NS records: the domain may use other name servers than the ones you edited.

Look up DNS from the command line

On macOS or Linux, with dig:

dig +short example.com A
dig +short example.com MX
dig @1.1.1.1 example.com TXT

On Windows, in Command Prompt:

nslookup -type=A example.com
nslookup -type=MX example.com
nslookup -type=TXT example.com 1.1.1.1

The @1.1.1.1 part (or the server at the end on Windows) asks a public resolver instead of your own.

When DNS breaks your site

An expired domain, a deleted record or a name server change that went wrong takes the whole site down, and nothing on the server shows an error. An uptime monitor catches it within minutes: the check fails with a DNS error and you get an alert. You can also check a site right now with the is it down checker.

Frequently asked questions

How do I look up the DNS records of a domain?

Enter the domain above and pick a record type, or "All common records". The lookup asks Cloudflare or Google over DNS-over-HTTPS and lists each record with its TTL.

How do I check MX records?

Pick MX as the record type. Each mail server is listed with its priority; the lowest number is tried first.

How do I check SPF, DKIM or DMARC?

They are TXT records. SPF is on the domain itself. DMARC is on _dmarc.example.com. DKIM is on selector._domainkey.example.com, where the selector comes from your email provider.

Why does the lookup show an old IP after I changed it?

Resolvers cache records for the TTL that was set before the change. Compare Cloudflare and Google: once both show the new value, most of the internet does.

How do I do a reverse DNS lookup?

Pick PTR and enter the IP address. The tool turns it into the reverse name (for example 4.4.8.8.in-addr.arpa) and looks that up.

Is my lookup sent to failover.io?

No. Your browser sends it straight to the resolver you picked, Cloudflare or Google. Nothing goes through our servers.