Home › Network Tools › DNS Lookup

DNS Lookup

Look up the DNS records of a host name: its IPv4 and IPv6 addresses, mail servers, text records and name servers.

When you press Look up, the name you enter is sent to Cloudflare's DNS resolver, which sees the name and your IP address. The tool sends one request for each record type you tick, all to that resolver. Nothing else is sent by this tool, and the site does not store lookups. As on every page of this site, the standard analytics load on this page too.

A host name only, for example tools4free.dev. Do not include http:// or a path.

Record types

TypeNameTTL (seconds)Value
No lookup yet.

How to use

  1. Type a host name such as tools4free.dev into the Host name box, without http:// or a path.
  2. Leave all the record types ticked, or untick the ones you do not need. To ask for a type that is not listed, type its number (1 to 65535) into the other-type box.
  3. Press Look up. The status line reports progress, and the table fills with one row per record: its type, name, TTL in seconds and value.
  4. If a type returns nothing, the status message says whether the name does not exist, the resolver failed, or there is simply no record of that type.

Worked example

Suppose you are setting up email for a domain and want to confirm the mail records. Enter the domain and tick only MX and TXT. A typical MX result lists one or more mail servers, each with a preference number. For example, a hosted mail provider might show "10 mx1.provider.example" and "20 mx2.provider.example". Lower numbers are tried first, and the higher number is the backup.

The TXT rows show text records. Look for one that starts with v=spf1, which lists the servers allowed to send mail for the domain. If a recent edit has not appeared, check the TTL column: the resolver may serve its cached copy until that many seconds pass.

How it works

The tool asks Cloudflare's public DNS resolver for each record type you tick, using DNS over HTTPS in JSON format. The request is a normal browser request to cloudflare-dns.com, and the answer comes back as text that this page reads. No DNS packets are sent from your computer, and the lookup goes through the resolver rather than your own network settings.

DNS, the Domain Name System, turns names into the data that computers need, mainly addresses. It is a worldwide, delegated database: your resolver asks the root, then the top-level domain, then the domain's own name servers, and caches the answers for the TTL. DNS over HTTPS, defined in RFC 8484, carries those questions inside ordinary encrypted HTTPS requests, so other devices on the network cannot easily read or alter them. Cloudflare's resolver also offers a JSON form of the service, and that is the form this tool asks for.

The host name is checked before anything is sent. Only ASCII letters, digits, hyphens and dots are accepted, each part between dots is 1 to 63 characters, and the whole name is at most 253 characters. A single trailing dot is allowed. Names with international characters must be entered in their punycode form, which starts with xn--.

The result shows what the resolver reported. A status of NXDOMAIN means the name does not exist. A status of SERVFAIL means the resolver could not answer. "No records of this type" means the name exists but has no record of that type. A request that takes longer than 10 seconds is stopped and reported as a timeout.

The list covers the common standard record types. There is no single query that returns every type: the resolver does not answer ANY queries, so each type is asked for separately. For a type that is not in the list, enter its number in the other-type box (any number from 1 to 65535). Records that the tool cannot name are shown with their number.

The results reflect the resolver's cache, so a record you changed recently may show its old value until the TTL (time to live, in seconds) runs out.

Privacy

This tool contacts an outside service. When you press Look up, the name you entered goes to Cloudflare's resolver at cloudflare-dns.com, one request per record type ticked. Cloudflare sees the name and your IP address, as any resolver would, and handles them under its own privacy policy. The site does not store lookups. As on every page, the analytics and ad scripts load separately. See the privacy policy.

Frequently asked questions

Why does my lookup show NXDOMAIN?

The name does not exist. Check the spelling, and remember that a subdomain only exists if someone created a record for it.

Why do I see an old record after I changed it?

Resolvers cache answers for the TTL. Wait for that time to pass and look up again.

Can this show every record for a name?

No. There is no query that lists everything, so the tool asks for each type separately.

Related tools