DNS

DNS Lookup

Look up DNS records for any domain using Cloudflare's DNS-over-HTTPS API

Enter a domain and select a record type, then click Lookup

Record Types

A

IPv4 address

AAAA

IPv6 address

CNAME

Canonical name alias

MX

Mail exchange

TXT

Text record (SPF, DKIM...)

NS

Name server

SOA

Start of authority

CAA

Certificate authorities allowed to issue certificates

SRV

Service location (use _service._proto.name)

Opens your print window: choose "Save as PDF". The file is named "DNS Lookup - MondayTool".
About this tool

Last updated:

Check DNS records for any domain

This DNS lookup tool shows the live DNS records for a domain. Use it to check where a website points, which servers receive a domain's email, whether an SPF or verification TXT record is in place, or which name servers a domain uses.

How to use it

  1. Enter a domain name, such as example.com.
  2. Choose a record type: A, AAAA, CNAME, MX, TXT, NS or SOA.
  3. Click Lookup or press Enter.
  4. Read the results table: Name, TTL in seconds, Type and Data.

Each lookup checks one record type. Run it again with another type to see more.

How it works

Your browser sends the query directly to Cloudflare's public DNS-over-HTTPS service (cloudflare-dns.com/dns-query, JSON format), and the answer is shown in the table. The domain you enter is sent to Cloudflare, not stored by this site.

If the lookup fails, you see the DNS error, such as NXDOMAIN (no such domain), SERVFAIL or REFUSED, or a message that no records of that type were found.

Example: an MX result of 10 mail.example.com. with a TTL of 3600 means mail goes to mail.example.com with priority 10, and resolvers may cache the answer for 3600 seconds, which is 1 hour.

DNS record types

TypeWhat it showsCheck it when
AIPv4 addressA site does not load or points to the wrong server
AAAAIPv6 addressSetting up IPv6
CNAMEAlias to another nameConnecting a subdomain to a hosted service
MXMail servers and priorityEmail is not arriving
TXTText such as SPF, DKIM or verification codesVerifying a domain or fixing email authentication
NSName serversMoving DNS to a new provider
SOAPrimary name server, serial number and timersChecking zone settings

Frequently asked questions

Why do I not see my new DNS change?

Results come from Cloudflare's resolver, which may still hold the old answer until its TTL expires. Wait and try again.

Is there a free DNS lookup API?

Yes. This tool uses Cloudflare's public endpoint, which you can call yourself with ?name=example.com&type=MX and the header Accept: application/dns-json.

More to explore

Related Network & API

Browse all tools from the same category.

Showing 1-2 of 7