Christmas−30 % for 12 months with codeGet the offer →
  1. Home
  2. Free tools
  3. DNS lookup
Free tool, no sign-up

DNS lookup

Run a DNS lookup on any domain and read the answer in plain terms: A, AAAA, MX, TXT, NS, SOA, CAA, DNSSEC records and more. Choose the public resolver or query the authoritative servers directly, with the TTL, the response time and the validation status.

  • 14 record types
  • 7 resolvers or authoritative servers
  • TTL, response code and DNSSEC
DNS lookup result: A, AAAA, MX, TXT, NS and CAA records of a domain with their TTL and DNSSEC validation
Zone readEight types in parallel
DNSSEC validatedResolver AD flag
What the tool does

A DNS lookup that is complete and readable

The tool asks the server of your choice, just as a mail server or a browser would, and formats each answer.

Fourteen types

A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR, DS, DNSKEY, TLSA and HTTPS, one at a time, or the eight main ones in a single lookup run in parallel, for an overview of the zone at a glance.

Resolver of your choice

Google Public DNS, Cloudflare, Quad9, OpenDNS, AdGuard DNS, DNS4EU or FDN, to see what internet users really see depending on their network and spot a cache that still holds an old value.

Authoritative servers

The tool finds the zone and its NS servers, then queries one of them directly, without any cache. You get the current reference value, the one every resolver will eventually show.

Readable TTL

How long each record is cached, in minutes, hours or days, and how long an absence is cached, taken from the zone's SOA. The exact value in seconds appears on hover.

Code and DNSSEC

The response code (NOERROR, NXDOMAIN, SERVFAIL) and the resolver's DNSSEC validation flag, with the response time in milliseconds of the server queried and its name.

Values to copy

Each value can be copied with one click. Long TXT records are reassembled, and an answer too large for UDP is automatically fetched again over TCP, so nothing is lost from large records.

How it works

Do a DNS lookup in four steps

Enter the name

A domain, a subdomain or an IP address. A web or email address pasted as is gets cleaned up automatically.

Choose the type

Keep “All main types” for an overview, or select a specific type such as MX, TXT, DS or TLSA.

Choose the resolver

A public resolver for what internet users see, the authoritative servers for the zone's current value.

Read and compare

Check the response code, the TTL and each value. Switch resolvers to spot a cache that hasn't expired yet.

What is a DNS lookup?

DNS (Domain Name System) is the directory of the internet. It translates a readable name, such as example.com, into information that machines can use: an IP address to display a website, the name of the servers that receive email, a signing key, a security rule. Without it, you would have to remember strings of numbers for every website you visit.

Every domain has a DNS zone, in other words a list of records published by its authoritative servers. When you open a page or send an email, your computer doesn't contact these servers directly. It goes through a resolver, often the one run by your internet provider, which asks the question on its behalf, keeps the answer in memory for a while and serves it to everyone who asks again.

A DNS lookup means asking this system a precise question yourself: “which record of this type exists for this name?”. The tool above does it for you and shows the answer in plain terms, with its lifetime, the server that answered and the DNSSEC validation status. It is the first thing to check when a website stops loading, when emails don't arrive, or simply to confirm that a change made at your registrar has been saved.

DNS record types explained simply

A zone contains several types of records. Each one answers a different question. The tool can query fourteen of them, one at a time, or the eight main ones at once with the “All main types” option.

Address records

  • A: the IPv4 address of a name, for example 192.0.2.10. This is what your browser queries to display a website.
  • AAAA: the IPv6 address of a name, for example 2001:db8::10. More and more mobile networks and home routers use it first.
  • CNAME: an alias. It indicates that one name is another name, and that the latter is the one to query. It is often used for www or to connect an external service.
  • HTTPS: a recent record that announces in advance the protocols a website accepts (HTTP/2, HTTP/3) and can save a step when connecting.

Email records

  • MX: the servers that receive the domain's email, each with a priority. The lowest number is tried first.
  • TXT: free text. This is where SPF, DKIM and DMARC live, as well as the verification codes requested by Google Workspace, Microsoft 365 and many other services.
  • SRV: the location of a specific service (server, port, priority), used for example for the automatic configuration of some email clients or for telephony.

Structure and security records

  • NS: the name servers that are authoritative for the zone.
  • SOA: the zone's identity card, with the primary server, the contact address, the serial number and several timers, including the one that sets how long negative answers are cached.
  • CAA: the list of certificate authorities allowed to issue a certificate for the domain, for example Let's Encrypt.
  • PTR: the reverse lookup, from an IP address to a name.
  • DS and DNSKEY: the DNSSEC keys, the cryptographic signature of answers. The DS is published at the registry of the extension, the DNSKEY in your zone.
  • TLSA: the fingerprint of a certificate published in DNS (DANE), mainly used between mail servers.

How to do a DNS lookup online, step by step

The tool is designed to be fast, with nothing to install and no terminal to open.

  1. Enter a name: a domain (example.com), a subdomain (www.example.com, mail.example.com) or a technical name such as selector._domainkey.example.com for a DKIM key. You can paste a full web address or an email address: the tool extracts the name from it. Names with accented characters are converted automatically.
  2. Choose the type: “All main types” queries A, AAAA, CNAME, MX, NS, TXT, SOA and CAA in parallel. For SRV, PTR, DS, DNSKEY, TLSA or HTTPS, pick the type from the list.
  3. Choose the resolver: Google Public DNS, Cloudflare, Quad9, OpenDNS, AdGuard DNS, DNS4EU or FDN, or the domain's authoritative servers directly.
  4. Run the lookup: the answer appears within moments. Each value can be copied with one click.

You can also enter an IPv4 or IPv6 address: the tool then builds the reverse name and looks up the PTR record. To go further and check that this name points back to the same address, use our reverse DNS lookup with FCrDNS check.

How to read a DNS lookup result

At the top of the result, the tool shows the name queried, the server that answered and the response time in milliseconds. Two badges sum up the essentials: the response code and the DNSSEC status. The records follow, one line per value.

The response code

  • NOERROR: the question was processed normally. The name exists, with or without a record of the requested type.
  • NXDOMAIN: the name doesn't exist at all in DNS. Check the spelling, or the subdomain, which may never have been created.
  • SERVFAIL: the resolver couldn't get a reliable answer. This often comes from unreachable authoritative servers, or from a broken DNSSEC signature.
  • REFUSED: the server refuses to answer this question, typically an authoritative server queried for a zone it doesn't manage.

The TTL

The TTL (Time To Live) is how long a resolver may keep the answer in its cache before asking again. The tool shows it in a readable form (5 min, 1 h, 1 d) and gives the exact value in seconds on hover. With a public resolver, the TTL shown is the time remaining in its cache, so it decreases from one query to the next. With the authoritative servers, it is the value configured in the zone.

The DNSSEC indicator

The “DNSSEC validated” badge reflects the AD (Authenticated Data) flag returned by the resolver: it has verified the chain of signatures up to the root. “Not validated” means the zone isn't signed, or that you are querying an authoritative server, which never validates on its own.

When there is no record

If the name exists but has no record of the requested type, the tool says so, and specifies how long resolvers will cache this absence. This duration comes from the last field of the SOA. It is an often overlooked point: a record created just after it was requested can remain “not found” for that period.

example.com.        3600  IN  MX    10 mx1.example.com.
example.com.        3600  IN  MX    20 mx2.example.com.
example.com.         300  IN  A     192.0.2.10
example.com.        3600  IN  TXT   "v=spf1 mx include:_spf.example.net -all"
example.com.       86400  IN  CAA   0 issue "letsencrypt.org"

Public resolver or authoritative servers: which one to choose?

The two answers don't mean the same thing, and comparing them is what makes them useful.

A public resolver answers with what it has in its cache. That is what most internet users and mail servers see at that moment. If you have just changed a value, it may still return the old one until the TTL expires. The Google resolver is selected by default, and you can try others to see whether the answer differs.

The authoritative servers give the current version of the zone, without any cache. The tool finds the zone of the name entered, reads its NS servers and queries one of them directly, without asking it for recursion. If the value is correct here but not at a resolver, the change has been made properly: you just need to wait. If it is wrong here too, the problem lies in the zone itself, at your registrar or your DNS host.

To compare the answers of nineteen resolvers spread across several countries in one go, use the DNS propagation checker. And to find out which registrar the domain is registered with and which name servers are declared at the registry, check the domain's Whois.

Common DNS errors and how to fix them

Most DNS outages come from a handful of classic mistakes. Here is how to spot them in the result and fix them.

A CNAME at the root of the domain

A CNAME cannot coexist with any other record on the same name. Yet the root of a domain always holds at least an SOA and NS records. Placing a CNAME on example.com therefore breaks the MX and TXT records. Solution: put an A (and AAAA) record at the root, and keep the CNAME for www. Some DNS hosts offer their own equivalent (ALIAS, ANAME) that works around this limit.

The missing trailing dot

In a zone file, a name that doesn't end with a dot gets the zone name appended. Writing mx1.example.com without a dot produces mx1.example.com.example.com. If the lookup shows this kind of doubled value, add the trailing dot or enter just “mx1”, depending on your host's interface.

Two SPF records

A domain must publish only one TXT record starting with v=spf1. With two, the SPF check fails for every message. Merge them into a single record, using the SPF record generator if needed.

An MX pointing to an IP address or a CNAME

The value of an MX record must be a host name that itself has an A or AAAA record. An IP address entered directly, or an alias, goes against the standard and is rejected by some senders. Check your receiving servers with the MX lookup.

SERVFAIL after enabling DNSSEC

If the DS published at the registry no longer matches the zone's key, for example after changing DNS host, validating resolvers return SERVFAIL and the domain becomes unreachable for their users. Compare the DS and the DNSKEY with the tool, then update or remove the DS at your registrar.

A change that “doesn't work”

Most of the time, it already works, but caches are keeping the old value. Query the authoritative servers: if the new value appears there, wait for the duration of the TTL. If it doesn't, check that you are editing the active zone, the one on the NS servers declared for the domain, and not an unused zone at a former provider.

Checking DNS by hand with dig and nslookup

The online tool is enough in most cases. If you manage servers, the same questions can be asked from the command line. On Linux and macOS, dig is the reference tool:

dig example.com MX +short
dig www.example.com A @1.1.1.1
dig example.com TXT +noall +answer
dig -x 192.0.2.10 +short

The @ parameter chooses the resolver, +short shows only the values, -x performs a reverse lookup. To query an authoritative server, first read the domain's NS records, then ask one of them with @ followed by its name.

On Windows, nslookup is available without installing anything:

nslookup -type=MX example.com
nslookup -type=TXT example.com 9.9.9.9

The results should match those of the tool for the same resolver. A difference almost always comes from the cache, or from a corporate resolver that rewrites certain answers.

DNS and email: the records that protect your domain

Your DNS zone isn't only for your website. It also decides who receives your email and who is allowed to send on your behalf. A quick DNS lookup on your domain lets you check the following points:

  • MX: are your receiving servers the right ones, with consistent priorities?
  • SPF, in a TXT record at the root: is the list of servers allowed to send for you complete, and unique?
  • DKIM, in a TXT record under selector._domainkey: is the public key published and readable?
  • DMARC, in a TXT record under _dmarc: which policy applies to messages that fail, and where should reports be sent? If you don't have one yet, the DMARC generator prepares one for you.
  • MTA-STS and TLS-RPT, under _mta-sts and _smtp._tls: is encryption between servers enforced and monitored? The MTA-STS, TLS-RPT and BIMI checker also checks the policy file.

A DNS lookup shows the raw value. To find out whether it is correct and how well it holds up against spoofing, run your domain through the SPF, DKIM and DMARC checker, which gives a grade and lists the fixes to make. Finally, remember your website's certificate, which the CAA record governs: the SSL certificate checker confirms that it is valid and properly renewed.

Quick reference

The most useful DNS records

TypePurposeExample value
A / AAAAIP address of a name192.0.2.10
CNAMEAlias to another nameexample.com.
MXMail receiving servers10 mx1.example.com.
TXTSPF, DKIM, DMARC, verificationsv=spf1 mx -all
NSAuthoritative serversns1.example.com.
CAAAllowed certificate authorities0 issue "letsencrypt.org"
DS / DNSKEYDNSSEC keys12345 13 2 9F86…
FAQ

DNS lookup: all your questions

What is a DNS lookup?

It is a question sent to the Domain Name System to get a specific record: the IP address of a website, the mail servers of a domain, a TXT record or a DNSSEC key. The tool sends this question to the resolver or authoritative server you choose, then shows the answer with its TTL, its response code and its response time.

How do I find the IP address of a website?

Enter the name of the website, for example www.example.com, and choose type A for the IPv4 address or AAAA for the IPv6 address. If the name is an alias, the answer first shows the CNAME, then the address of the target name. The same website can have several addresses, spread across several servers.

How can I see all DNS records for a domain?

DNS doesn't let you list an entire zone, because zone transfers are almost always refused. The “All main types” option queries A, AAAA, CNAME, MX, NS, TXT, SOA and CAA in parallel. Subdomains, such as www, _dmarc or a DKIM selector, only show up if you enter their exact name.

What does TTL mean in a DNS record?

The TTL, or Time To Live, is the number of seconds a resolver may keep an answer in its cache before asking again. A TTL of 300 is five minutes, a TTL of 86400 is one day. The shorter it is, the sooner a change becomes visible, at the cost of a few more queries.

Why do DNS lookup results differ between resolvers?

Each resolver caches its answers for the duration of the TTL. Just after a change, some still return the old value, others already the new one. The authoritative servers, on the other hand, always give the current version of the zone. If the value is correct there, you just need to wait for the caches to expire.

What does NXDOMAIN mean?

NXDOMAIN means that the requested name doesn't exist at all in DNS. It isn't the same as a name that exists without a record of the requested type, which returns NOERROR with an empty answer. Check the spelling of the name, and for a subdomain, make sure it has actually been created in the active zone.

How do I check whether a domain uses DNSSEC?

Query the DS type, published at the registry of the extension, and the DNSKEY type, published in the zone. If both exist, the domain is signed. With a public resolver, the “DNSSEC validated” badge also confirms that the chain of signatures has been verified. A sudden SERVFAIL on a signed domain often points to a DS that no longer matches.

What is the difference between a resolver and an authoritative server?

The authoritative server holds a domain's zone and publishes its official records. The resolver, run by your internet provider or a public resolver, queries these servers on behalf of internet users and caches the answers. The tool lets you query either one and compare their answers.

How do I check my SPF, DKIM and DMARC records?

Choose the TXT type. Enter your domain to see SPF, _dmarc.your-domain for DMARC and selector._domainkey.your-domain for a DKIM key. The DNS lookup shows the raw value. To find out whether it is correct and get a grade with advice, use our SPF, DKIM and DMARC checker.

Can I do a DNS lookup on an IP address?

Yes. Enter an IPv4 or IPv6 address: the tool automatically builds the reverse name, under in-addr.arpa or ip6.arpa, and looks up the PTR record that gives the associated host name. To also check that this name points back to the same address, use the reverse DNS tool, which runs the check in both directions.

Are the domains I look up stored?

An answer is cached for one minute to serve the same question faster, without being linked to your identity, then deleted automatically. To limit abuse, the tool counts lookups per visitor using a fingerprint calculated from the IP address, without keeping the address itself. There is no account and no history of your lookups.

Is the DNS lookup really free?

Yes. The tool is free, with no sign-up. You can use it as much as you need, for your own domains as well as for your clients' domains. Only an anti-abuse limit applies: after a large number of lookups within a few minutes, the tool asks you to wait a moment before continuing.

The complete toolbox

All our free tools, in one place

25 free tools, no sign-up needed, to check your email, your domain and your website. Each one gives a clear result and the steps to follow.

Email and deliverability 10

SPF, DKIM and DMARC checkerEmail authentication
Free

An A to F grade for your domain, with the exact fix to publish for each issue.

  • SPF, DKIM and DMARC read and explained
  • DMARC policy and alignment
  • Fixes ready to copy
Open the tool
Domain security auditDomain security
Free

Free domain security check: SPF, DKIM, DMARC, MTA-STS, blacklists, certificate and lookalike domains. Get an A to F grade and fixes ready to copy.

  • A to F grade in 20 to 40 seconds
  • Fixes ready to copy
  • Free weekly monitoring
Open the tool
Email spam testDeliverability
Free

Send a message to a test address and get a score out of 100: authentication, reputation, content.

Open the tool
MX lookupReceiving
Free

Where your mail arrives, in what order, and whether it goes through a filter before your inbox.

Open the tool
DMARC generatorAuthentication
Free

Your DMARC record in one minute, with the right policy to get started safely.

Open the tool
SPF generatorAuthentication
Free

A correct SPF built from your sending services, without exceeding the ten lookup limit.

Open the tool
Email header analyzerInvestigation
Free

Paste a message's headers: route, delays and authentication checks translated into plain English.

Open the tool
MTA-STS, TLS-RPT and BIMIAdvanced security
Free

Encryption enforced between servers, TLS reports, brand logo and DNSSEC in a single test.

Open the tool
Blacklist checkerReputation
Free

Is your IP address or domain on anti-spam lists? Thirteen lists checked.

Open the tool
Email signature generatorBrand image
Free

A professional signature in six steps, compatible with every mail app.

Open the tool

Domains and DNS 6

DNS lookupRecords
You are here

All of a domain's records, A, MX, TXT, NS, CAA and the rest, on the resolver of your choice.

DNS propagationDNS changes
Free

Is a change already visible everywhere? The answer from nineteen resolvers around the world.

Open the tool
Reverse DNS lookup (PTR)IP address
Free

The name associated with an IP address, checked in both directions, just as mail servers do.

Open the tool
Whois and RDAP lookupOwnership
Free

Registrar, creation and expiry dates, name servers and status of a domain or an IP.

Open the tool
Lookalike domain finderSpoofing
Free

Names close to yours that are already registered, which fraudsters could use against your customers.

Open the tool
Punycode converterAccented names
Free

Accented domains and the xn-- form, in both directions, with detection of misleading characters.

Open the tool

Websites and security 8

Speed testPerformance
Free

An A to F grade, Core Web Vitals, image-by-image loading and advice, on mobile and desktop.

  • Google metrics and server analysis
  • Request waterfall and page weight
  • PDF report to share
Open the tool
Cookie scannerGDPR
Free

Cookies before and after consent, banner, providers and a GDPR register ready to publish.

Open the tool
SSL certificate checkerEncryption
Free

Validity, issuer, chain, names covered and expiry date of a certificate, on any port.

Open the tool
HTTP headers and redirectsWeb server
Free

The redirect chain of an address and the grade of its security headers.

Open the tool
What is my IPNetwork
Free

Your public IP address, IPv4 and IPv6, its name, its operator and its country.

Open the tool
Internet speed testConnection
Free

Download and upload speed, latency and jitter of your connection, measured live in your browser.

Open the tool
IP and CIDR subnet calculatorNetwork
Free

Ranges, masks, subnets and number of addresses of an IPv4 or IPv6 network.

Open the tool
Password generatorSecurity
Free

Strong passwords and passphrases, created in your browser, never sent.

Open the tool

Migration and handy tools 1

Email migrationChanging host
Free

Copy all the messages from one mailbox to another, folders and dates included, without deleting anything.

Open the tool

Your DNS zone decides who receives your emails

A simple MX change is all it takes for every incoming message to go through Passmundi: sender validation, anti-spam, antivirus and anti-phishing, without changing your email service.