DNS Lookup
Updated November 2026Enter a domain and see all of its DNS records in one step: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, each with its TTL, plus a plain-language summary of hosting, email routing, SPF and DMARC. Enter an IP address for a reverse DNS lookup. Free, no signup.
Advertisement
Advertisement
What a DNS Lookup Shows
DNS is the system that turns a name such as example.com into the things computers need: the IP address of the web server, the servers that take the domain's email, and a handful of policies published as text. Each of those facts is a DNS record, and a DNS lookup is the act of asking for them.
This tool asks for all the common record types in one go, A, AAAA, CNAME, MX, NS, TXT, SOA and CAA, plus the DMARC policy that lives on a separate name, and shows the answers grouped by type with the time each one may be cached. Above the records it writes out what they add up to: where the site is hosted, who runs the DNS, where mail goes, and whether the email authentication records are in place. Enter an IP address instead of a name and it does a reverse DNS lookup.
DNS Record Types Explained
| Type | What it holds | Example value | You change it when |
|---|---|---|---|
| A | IPv4 address for the name | 203.0.113.10 | You move the site to another server or host. |
| AAAA | IPv6 address for the name | 2001:db8::10 | Your host gives you an IPv6 address. |
| CNAME | An alias: "this name is really that name" | shops.myshopify.com | You point www or a subdomain at a hosted service. |
| MX | Mail servers for the domain, each with a priority | 10 mail.example.com | You switch email provider. |
| NS | The name servers that are authoritative for the zone | ns1.dnshost.com | You move DNS hosting, for example to a CDN. |
| TXT | Free text: SPF, DKIM keys, ownership verification | v=spf1 include:_spf.google.com ~all | A service asks you to prove you own the domain, or you set up email authentication. |
| SOA | Zone header: primary server, contact, serial number, timers | (one per zone) | Rarely by hand; the DNS host maintains it. |
| CAA | Which certificate authorities may issue SSL certificates | 0 issue "letsencrypt.org" | You want to restrict who can issue certificates for the domain. |
| PTR | Reverse mapping from an IP address to a host name | mail.example.com | You run a mail server; set by whoever owns the IP, usually the host. |
A and AAAA records answer "where is the website". MX answers "where does the email go", and it is independent of the website: a domain can host its site in one place and its mail in another. NS and SOA describe the zone itself, and TXT is the catch-all that most third-party services use.
TTL and Why DNS Changes Are Not Instant
Every record carries a TTL, time to live, in seconds. It tells resolvers (the DNS servers of internet providers, Google, Cloudflare and others) how long they may reuse the answer before asking again. A TTL of 3600 means that after you change the record, some users can keep getting the old value for up to an hour.
That is all "DNS propagation" is. Nothing spreads from server to server; old answers simply expire from caches at different moments. Two practical consequences:
- Lower the TTL before a planned move. A day or two ahead, set the record's TTL to 300 seconds. When you then change the address, everyone follows within five minutes. Raise it again afterwards.
- The TTL shown here counts down. The lookup goes through a public resolver, which reports the time left in its own cache. A record configured with 3600 can show 1200 because the resolver fetched it 40 minutes ago.
Name server (NS) changes are slower than ordinary records because they are cached at the registry level, commonly for 24 to 48 hours.
Email Records: MX, SPF, DKIM and DMARC
Most DNS problems people actually notice are email problems: messages bounce, or land in spam. Four record types are involved, and the lookup reads three of them automatically.
MX: where mail is delivered
Each MX record names a mail server and gives it a priority number. Senders try the lowest number first and move to the next if it does not answer. The tool sorts them in that order and recognises the common providers by their host names.
SPF: who may send
SPF is a TXT record on the domain that lists the servers allowed to send its mail:
v=spf1 include:_spf.google.com include:servers.mcsv.net ~allThe ending decides what happens to everyone else: -all rejects, ~all accepts but marks as suspicious, ?all does nothing and +all allows the whole internet. Two rules catch people out, and the tool checks both. A domain may have only one SPF record; two of them make SPF fail for all mail. And a record may trigger at most 10 DNS lookups (each include, a, mx, exists and redirect counts), which is easy to exceed after adding several email services.
DKIM: a signature on each message
DKIM publishes a public key as a TXT record under a name chosen by the mail provider, called a selector: selector._domainkey.example.com. Because the selector can be any word, no tool can find DKIM records by guessing. Take the selector from your provider's setup page or from the DKIM-Signature header of a message you sent (the s= value), then look up the full name here, for example google._domainkey.example.com.
DMARC: what to do when the checks fail
DMARC is a TXT record at _dmarc.example.com. It tells receivers what to do with mail that fails both SPF and DKIM, and where to send reports:
v=DMARC1; p=quarantine; rua=mailto:dmarc@example.comp=none only monitors, p=quarantine sends failing mail to spam and p=reject refuses it. Gmail and Yahoo require a DMARC record from anyone sending bulk mail to their users, so a missing one is flagged in the summary. The sensible path is to start at none, read the reports for a few weeks, then tighten the policy.
Pointing a Domain at a Website: A Record or CNAME?
Hosts give you one of two instructions: "create an A record with this IP address" or "create a CNAME to this host name". They are not interchangeable.
| A record | CNAME | |
|---|---|---|
| Points to | An IP address | Another host name |
| Allowed on the bare domain (example.com) | Yes | No. The bare domain must hold NS and SOA records, and a CNAME cannot share a name with anything else. |
| Allowed on www and other subdomains | Yes | Yes, and usually preferred |
| If the host changes its IP | You must update the record | Nothing to do; the target name follows |
The usual setup is therefore an A record on example.com and a CNAME on www. Some DNS hosts offer "CNAME flattening", ALIAS or ANAME records that behave like a CNAME on the bare domain; in a lookup they appear as ordinary A records. After pointing the domain, check that both the www and the bare version end on the same address with the redirect checker: one should redirect to the other with a single 301.
Reverse DNS Lookup: From an IP Address to a Name
A reverse lookup asks the opposite question: which host name does this IP address claim? The answer is a PTR record, stored under a special name built from the address written backwards (8.8.8.8 becomes 8.8.8.8.in-addr.arpa). Type an IPv4 or IPv6 address into the box and the tool builds that name for you.
Two situations make it useful:
- Verifying a crawler. To confirm that a request in your logs really came from Googlebot, reverse-look-up the IP. The name must end in
googlebot.comorgoogle.com. Then look that name up forwards and check that it returns the same IP. A fake Googlebot fails the first step. Bing publishes the same procedure withsearch.msn.com. To see what a given user agent string claims to be, paste it into the user agent parser. - Running a mail server. Receiving servers reject or distrust mail from an IP with no PTR record, or one whose name does not resolve back to the same IP.
A PTR record tells you the name of a machine, not who or where it is. For the owner network, country and city of an address, use the IP address lookup; each A record in the results links to it.
The Same Lookups With nslookup and dig
The tool is an online equivalent of the command-line utilities that ship with Windows, macOS and Linux. If you prefer a terminal, these commands return the same data:
| To find | dig (macOS, Linux) | nslookup (Windows) |
|---|---|---|
| IP address of a site | dig example.com A +short | nslookup example.com |
| Mail servers | dig example.com MX +short | nslookup -type=mx example.com |
| TXT and SPF | dig example.com TXT +short | nslookup -type=txt example.com |
| DMARC policy | dig _dmarc.example.com TXT +short | nslookup -type=txt _dmarc.example.com |
| Name servers | dig example.com NS +short | nslookup -type=ns example.com |
| Reverse DNS | dig -x 8.8.8.8 +short | nslookup 8.8.8.8 |
| Ask a specific resolver | dig @1.1.1.1 example.com | nslookup example.com 1.1.1.1 |
The difference is where the question is asked from. A command on your computer uses your own resolver and its cache, and can be affected by a hosts file or a VPN. This page asks a public resolver from our server, so it shows what the rest of the internet gets. When the two disagree, the cause is on your side.
Troubleshooting Common DNS Results
| What you see | What it means | What to do |
|---|---|---|
| NXDOMAIN | The name does not exist. Browsers show DNS_PROBE_FINISHED_NXDOMAIN. | Check the spelling. For a domain you own, confirm it has not expired and that name servers are set at the registrar. For a subdomain, the record was never created. |
| SERVFAIL | The resolver could not get a usable answer from the domain's name servers. | The name servers are down, do not know the zone, or DNSSEC is broken (often after moving DNS hosts without updating the DS record at the registrar). |
| Records exist but no A or AAAA | The name is in DNS but has no address, so a browser cannot open it. | Add an A record or a CNAME for that exact name. A record on www does not cover the bare domain, and the other way round. |
| The old IP address is still returned | A cached answer has not expired yet. | Wait out the TTL. If this page shows the new value but your computer does not, flush the local DNS cache or restart the browser. |
| MX, NS and SOA are empty for www | Those records belong to the domain, not to its subdomains. | Look up the bare domain instead. (If www is a CNAME, you will see the records of the name it points to.) |
| The A records keep changing | The site uses a CDN or load balancer that rotates addresses. | Nothing. It is expected for sites behind Cloudflare, AWS, Fastly and similar networks. |
How This DNS Lookup Works and Its Limits
When you press the button, our server sends one question per record type to Google Public DNS over an encrypted connection (DNS over HTTPS), and to Cloudflare's resolver if Google's cannot be reached. The answers are returned to your browser and read there. Nothing is stored.
- The answers come from a recursive resolver's cache, not directly from the domain's own name servers. They are what the public sees, which can lag behind a change you made a minute ago.
- DNS has no "list everything" query. A lookup returns the records on the exact name you ask for, so subdomains are not discovered; look each one up by name.
- DKIM records need the selector, as explained above.
- It is a single vantage point. A site that gives different answers per country (geo DNS) will show the answer given to the resolver we ask.
How to Use
- 1
Type a domain name such as example.com. A full URL or an email address also works: the host name is taken from it
- 2
Press "Look up DNS". All common record types are queried at once, so there is no type to choose
- 3
Read the summary first: it says where the site is hosted, who runs the DNS, where email goes and whether SPF and DMARC are set
- 4
Scroll through the records by type. Click a mail server, name server or CNAME target to look that host up in turn, or an IP address to see its location or reverse DNS
- 5
For a reverse DNS lookup, enter an IPv4 or IPv6 address instead of a domain
Why This Tool Matters for SEO
DNS sits underneath everything a website does. If the A record points to the wrong server the site is down; if it points to an old server, visitors and Googlebot see a stale copy. A migration is only finished when the records have changed and the old values have expired from caches, and the only way to know is to look them up. The same goes for email: a missing SPF or DMARC record sends newsletters and order confirmations to spam, and a wrong MX record makes mail disappear. Reading the records takes seconds and rules out, or confirms, the cause that is hardest to see from a browser.
Frequently Asked Questions
How long does a DNS change take to work?
As long as the TTL of the record you changed, counted from the moment each resolver last cached it. With a TTL of 300 seconds almost everyone sees the change within five minutes; with 86400 it can take a day. Changing the name servers of a domain is slower, commonly 24 to 48 hours, because that information is cached higher up. Nothing actively "propagates": old cached answers simply expire.
What is the difference between an A record and a CNAME?
An A record maps a name to an IP address. A CNAME maps a name to another name, whose address is then used. A CNAME is convenient for www and other subdomains pointing at a hosted service, because the service can change its IP without you touching DNS. It is not allowed on the bare domain, which is why hosts ask for an A record (or an ALIAS record) there.
Is this the same as nslookup or dig?
It returns the same records. nslookup and dig run on your computer and ask the resolver your network is configured to use. This tool asks Google Public DNS from our server, so it is not affected by your local cache, hosts file or VPN, and it queries every record type in one step instead of one command per type.
Why are there no MX or NS records for www.example.com?
Mail and name server records are normally set on the registered domain (example.com), not on its subdomains. Looking up www returns only what exists on that exact name, usually just an A record. The exception is a www that is a CNAME: the resolver follows the alias and shows the records of the target name instead. Look up the bare domain to see its MX, NS, SOA and TXT records.
Can I see all subdomains of a domain?
No. DNS answers questions about one exact name at a time and has no public "list all records" query; zone transfers, which would do that, are disabled on properly configured servers. You can look up any subdomain whose name you know.
How do I check SPF, DKIM and DMARC records?
Look up the domain. The SPF record (a TXT record starting with v=spf1) and the DMARC record (a TXT record at _dmarc.yourdomain) are found and explained automatically. DKIM needs the selector your mail provider uses: look up selector._domainkey.yourdomain, for example google._domainkey.example.com.
What does NXDOMAIN mean?
Non-existent domain: no record of any type exists for that name. In a browser it appears as DNS_PROBE_FINISHED_NXDOMAIN or "server not found". It is caused by a typo, an expired or unregistered domain, a domain with no name servers assigned, or a subdomain that was never created.
Do you store the domains I look up?
No. The name is sent to our server, which asks a public DNS resolver and returns the answers to your browser. Nothing is saved. DNS records are public information: anyone can query them.
Related Tools You Might Like
My IP Address Checker
Find your public IP address, location and ISP, or check any other IP. IP checker with a geo-location map and VPN / proxy detection
What Is My User Agent
See your user agent string decoded: browser, OS, device, Client Hints and request headers. Parses any UA string, including Googlebot and AI crawlers
Redirect Checker
Trace a URL through every 301, 302 and meta refresh hop, see the final destination and find chains and loops. Single URL or bulk
Broken Link Checker
Crawl a website or check a list of URLs for broken links, 404 errors and redirects, with the page each link was found on
Related Guides
More in Developer Tools tools ยท All free SEO tools