Home/Tools/DNS Lookup
Network & IP

DNS Lookup — Query Any Domain's DNS Records

By Mehadi ShawonReviewed by DigiMetrics Hub7 min readLast Updated: April 2026

Query DNS records for any domain including A, AAAA, MX, CNAME, TXT, and NS records. Free DNS lookup tool using Cloudflare DNS-over-HTTPS. Instant results.

Definition:DNS Lookup is a free tool that queries DNS servers for any domain to retrieve records like A, AAAA, MX, CNAME, TXT, and NS. It helps developers, sysadmins, and SEO professionals troubleshoot domains and verify DNS configurations.
🔒 No signup required · 📊 Real-time data · 🆓 Always free · 🔐 We never store your data

Use DNS Lookup

Launch the DNS Lookup tool — fully free, no signup required.

Quick answer
DNS Lookup checks the live DNS records of any domain — A, AAAA, MX, CNAME, TXT, NS, and more — using Cloudflare's DNS-over-HTTPS resolver. Results are real-time and reflect what the public internet currently sees for that domain.

What Are DNS Records?

DNS records are the instructions stored on authoritative name servers that tell the internet how to handle a domain. They map names to addresses, route email, prove ownership, and configure subdomains. Every domain has at least one A or AAAA record so browsers know which server to talk to.

DNS Record Types Explained

The most common record types are A (IPv4 address), AAAA (IPv6 address), CNAME (alias to another name), MX (mail server priority list), TXT (free-form text used for SPF, DKIM, and domain verification), NS (nameservers for the zone), SOA (zone authority and timing), and PTR (reverse DNS). The table below summarizes each.

How to Use the DNS Lookup Tool

Enter a domain (no http://) such as example.com, pick the record type you want to inspect, and run the query. Results show every matching record currently published, along with TTL values that tell you how long resolvers will cache the answer.

DNS Record Reference Table

RecordPurposeExample
AMaps domain to IPv493.184.216.34
AAAAMaps domain to IPv62001:db8::1
MXMail servermail.example.com
CNAMEDomain aliaswww → example.com
TXTSPF, DKIM, verificationv=spf1 include:...
NSNameserversns1.example.com
SOAZone authorityPrimary DNS info
PTRReverse DNSIP → hostname

What It Is

A DNS lookup is a real-time query against the public Domain Name System that returns the records currently published for a given domain. DNS is the layer of the internet that turns human-readable names like digimetricshub.com into the IP addresses, mail server endpoints, and verification strings that machines actually use. Every browser tab you open, every email you send, and every API call your app makes starts with a DNS lookup. The DigiMetrics DNS Lookup tool exposes that hidden step so you can audit it directly — useful for developers preparing a migration, SEO teams verifying canonical hosts, security analysts hunting suspicious infrastructure, and site owners debugging downtime. Results come from Cloudflare's 1.1.1.1 DNS-over-HTTPS resolver, so the answers reflect what the public internet sees right now, not a cached snapshot from yesterday.

How It Works

When you submit a domain, the tool sends an HTTPS request to a recursive resolver. The resolver first checks its local cache. If the answer isn't there or has expired, it walks the DNS hierarchy: it asks a root server which TLD server owns .com, asks that TLD server which authoritative name servers own example.com, then asks those name servers for the specific record type you requested. The authoritative server returns the record set with a TTL, the resolver caches it, and the tool renders the result. Because the lookup is recursive and not cached on our side, two queries minutes apart can return different answers — which is exactly what you want when monitoring a propagation window.

Real-World Examples

A developer migrating from Heroku to Cloudflare Pages runs an A-record lookup before and after switching the apex record to confirm the new IP is live. An SEO consultant checks the CNAME on www to make sure it points at the canonical host the sitemap declares. A founder sets up Google Workspace and runs an MX lookup to verify the five Google mail servers are listed in priority order. A security engineer investigates a phishing report by pulling TXT records to inspect SPF and DMARC policies. A reseller about to buy a domain runs an NS lookup to confirm the seller hasn't already updated nameservers behind their back.

Common Mistakes to Avoid

The most common mistakes are pasting a full URL (https://example.com/page) instead of the bare domain, looking up the wrong subdomain (querying example.com when the issue is on www.example.com or app.example.com), forgetting that CNAME and A records cannot coexist on the same name, and assuming a missing AAAA record means a site is broken when many domains intentionally publish IPv4 only. Another classic trap is treating a fresh DNS change as instant — propagation always respects the previous record's TTL, which is why high-traffic teams lower TTLs hours before a planned cutover.

Security Implications

DNS is a quiet but high-leverage attack surface. Attackers who compromise a registrar account can repoint MX records to harvest email or repoint A records to a clone of your login page. DNS hijacking, cache poisoning, and subdomain takeovers (orphaned CNAME entries pointing at deprovisioned cloud services) are all routine. A DNS Lookup that returns nameservers you don't recognize, or TXT records you didn't publish, is an immediate incident-response signal. Pair regular DNS audits with registrar-level two-factor authentication, registry-lock for critical domains, and DNSSEC where your registrar supports it.

Best Practices

Keep your DNS zone tidy and documented. Use short TTLs (300–600 seconds) during planned changes and longer TTLs (3600+ seconds) during steady state to reduce resolver load. Always publish SPF, DKIM, and DMARC records to protect your sending domain from spoofing. Use CAA records to lock down which certificate authorities can issue certificates for your name. Run a DNS lookup as the very first step of any production incident — it eliminates an entire class of false leads. And whenever you change a registrar, re-export and re-import the full zone manually instead of trusting an auto-migration.

Troubleshooting Guide

If the tool returns no records for a domain you control, verify that nameservers at the registrar match the ones you expect; a typo at the registrar leaves the zone unanswered. If you see stale records, you're looking at a cached value — wait the prior TTL or query a different resolver. If MX records resolve but mail still bounces, run the Reverse DNS tool and check that the sending IP has a matching PTR. If a CNAME chain returns SERVFAIL, one of the intermediate names has expired — flatten the chain to a single A record. For propagation issues, run lookups against multiple geographic resolvers (1.1.1.1, 8.8.8.8, your ISP) and compare results.

Frequently Asked Questions

What is a DNS lookup?+

A DNS lookup queries DNS servers to retrieve records for a domain, such as its IP address, mail servers, or text verification records.

What DNS record type should I look up?+

Use A records to find a domain's IP address, MX records to check mail servers, TXT records to verify SPF and DKIM, and CNAME records to check domain aliases.

Why are my DNS records not updating?+

DNS changes take 24-48 hours to propagate globally due to TTL (Time to Live) caching. Use this tool to check if your DNS changes have propagated yet.

Is DNS Lookup the same as WHOIS?+

No. DNS Lookup shows where a domain points (IP, mail server, etc.). WHOIS shows who registered the domain and when. Both are useful and complement each other for troubleshooting.

Can I trust the DNS results shown here?+

Yes. Queries use Cloudflare's public DNS-over-HTTPS resolver (1.1.1.1), which fetches answers directly from the domain's authoritative name servers in real time.

How long does DNS propagation actually take?+

Worst case 24–48 hours, but most resolvers see the new record within the previous TTL window — often under an hour if you pre-lowered the TTL before the change.

Why do I get different answers from different DNS lookup tools?+

Each tool queries a different recursive resolver, and each resolver has its own cache. The authoritative answer is the same; the cached one you see depends on where you ask.

What's the difference between DNS Lookup and nslookup?+

Functionally identical. nslookup is the command-line equivalent. This tool wraps the same DNS protocol in a browser UI and adds Cloudflare's resolver for consistent global results.

Can I look up records for a subdomain?+

Yes. Enter the full subdomain (api.example.com, mail.example.com) and the tool will return the records published at that exact name.

Does this tool support DNS over HTTPS (DoH)?+

Yes — the lookup itself is performed over Cloudflare's DoH endpoint (1.1.1.1) for encrypted, censorship-resistant queries.

Why don't I see a DMARC record when I look up TXT?+

DMARC lives at _dmarc.yourdomain.com, not at the root. Query that exact subdomain to see the policy.

What does a SERVFAIL response mean?+

The resolver couldn't get a definitive answer from the authoritative servers — usually a misconfigured zone, a broken DNSSEC chain, or unreachable name servers.

How to perform a DNS lookup

  1. 1

    Enter the domain

    Type the bare domain (example.com — no http:// or trailing slash) into the input box.

  2. 2

    Pick a record type

    Choose A for IPv4, AAAA for IPv6, MX for mail, TXT for SPF/DKIM/verification, CNAME for aliases, or NS for nameservers.

  3. 3

    Run the query

    Hit Lookup. The tool queries Cloudflare's DNS-over-HTTPS resolver and returns every matching record published by the domain's authoritative name servers.

  4. 4

    Read TTL values

    Note the TTL (Time To Live). It tells you how long resolvers worldwide will cache the answer before re-querying — typically 300 to 86400 seconds.

  5. 5

    Compare against expectations

    If a recent DNS change isn't showing up yet, wait the TTL window from the previous value, then re-run the lookup to confirm propagation.

Learn More — Related Guides

Related Tools — More Network & IP