DNS

Online DIG Tool

Free online DIG tool. Run dig command DNS queries with full packet output — sections, flags, status codes, and TTLs — straight from your browser.

Run DIG query

Send a packet-level DNS query and inspect sections, flags, rcodes, and TTLs.

Results come from deterministic DNS APIs or HTTPS RDAP endpoints.

Results

Run a lookup to see structured results here.

Practical guide

How to use the DIG tool

dig is the standard DNS troubleshooting tool because it shows the actual DNS response — not a polished summary. This page runs the same query against a public resolver and gives you the full answer to read or share.

What this tool checks

DIG sends a single DNS query to a recursive resolver and returns the full response: header flags, the question section, the answer, any authority and additional records, and a TTL for each row. Unlike a plain lookup, it shows you exactly what came back on the wire, which is what you need when something is wrong.

When to use it

Use DIG when a lookup looks fine but mail still bounces, when DNSSEC validation fails, when you need to read TTLs before a cutover, when a resolver returns a different answer than expected, or when you want a clean output to paste into a ticket. It is also the right tool for queries that other interfaces hide, such as TYPE65 / HTTPS records or large TXT bundles.

How to read the result

The header line shows the status (NOERROR, NXDOMAIN, SERVFAIL, REFUSED) and the flags (qr, aa, rd, ra, ad). The ANSWER SECTION holds the records the resolver returned. The TTL column is in seconds. The AUTHORITY and ADDITIONAL sections are not always present but show the nameservers and glue records the resolver used. If the answer is empty but the status is NOERROR, the record type does not exist for that name.

Common errors and what they mean

NXDOMAIN means the resolver was authoritatively told the name does not exist. SERVFAIL almost always points to a broken DNSSEC chain or an unreachable authoritative server. A correct NOERROR with zero answers means the record type is missing for an existing name. If the AD flag is missing on a domain you expect to be signed, DNSSEC validation is failing somewhere upstream.

Example DIG query

Example input
dig example.com A @1.1.1.1
Example result
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12345
;; flags: qr rd ra; QUERY: 1, ANSWER: 1

;; ANSWER SECTION:
example.com.   3600   IN   A   93.184.216.34

Status NOERROR plus a populated ANSWER section is the success case. The TTL (3600) tells you how long Cloudflare will cache this answer before re-asking the authoritative servers.

Related tools

Related guides

FAQ

What is the difference between dig and nslookup?
dig is the modern UNIX tool for DNS troubleshooting. It exposes the full DNS response — flags, response codes, all sections, and TTLs — in a stable, scriptable format. nslookup is older, interactive, and hides much of the protocol detail. Use dig (or this tool) whenever you need the raw answer or want to share output with someone for diagnosis.
How do I read the status field in a dig answer?
Look for the line that starts with ';; ->>HEADER<<-'. The status code is right after status:. NOERROR means the resolver returned an answer (which may be an empty answer set). NXDOMAIN means the name does not exist. SERVFAIL means the resolver failed to complete the query — often a DNSSEC issue or an upstream timeout. REFUSED usually means the resolver will not answer that query from your network.
What does the TTL column mean?
TTL is the number of seconds the resolver is allowed to cache the answer before re-asking the authoritative server. A small TTL like 60 makes record changes propagate quickly but means more lookups. A large TTL like 86400 (one day) is cheaper but slower to roll out changes. Read 'DNS TTL Explained' for the full picture.
Why does this tool show different answers than my command-line dig?
The two queries are going through different resolvers and possibly different networks. This tool uses public recursive resolvers (Cloudflare, Google, Quad9, OpenDNS). Your local dig probably uses your ISP, corporate, or local DNS, which may have a different cache state, split-horizon view, or filtering. Use Multi-Resolver Compare to see all of them side by side.
Can I query DNSSEC records with this tool?
You can query DNSKEY, DS, RRSIG, and NSEC record types directly. The tool sends the DO bit so signed zones return their signatures. For full chain-of-trust validation, run dig +dnssec locally or use a DNSSEC-specific debugger such as dnsviz.net.

Last reviewed: 2026-05-20.