dig Online
Run dig on our server and see its real output, with the answer section highlighted and the result explained in plain words.
Runs on our server in a locked-down sandbox. Results are deleted after 10 minutes.
Updated
How to use dig Online
- Enter a domain name.
- Pick a record type and a resolver: Cloudflare, Google or Quad9.
- Run dig, then read the summary or the full output.
dig Online at a glance
Typical use: Check the MX records a resolver returns, or an SRV record like _sip._tcp.example.com, without a terminal.
Runs dig on our server in a locked-down sandbox, against the resolver you pick. Results are deleted after 10 minutes; lookups are not logged. About 30 runs per minute per network.
When to use dig Online
Use dig Online when you want the real output of the dig command, exactly as a system administrator would see it in a terminal, but don’t have one at hand, or your network blocks DNS. The page runs dig on our server against Cloudflare, Google or Quad9, shows the full output with the answer section highlighted, and sums up the result in plain words.
For a friendlier view with every common record type at once and SPF and DMARC explained, use DNS Lookup instead. It runs in your browser.
dig Online examples
- Mail servers:
example.comwith type MX. Each answer line shows the TTL, the priority (lower is tried first) and the server name. - SRV records for a service:
_sip._tcp.example.comwith type SRV shows priority, weight, port and target for each server. - Check a resolver’s cache: run the same A lookup against Cloudflare and then Google. Different TTLs (or different addresses right after a change) show each one’s cached copy counting down.
How to read dig output
| Part | What it tells you |
|---|---|
| status: | NOERROR (fine), NXDOMAIN (the name doesn’t exist) or SERVFAIL (the lookup failed). |
| flags: | qr reply, rd/ra recursion asked for and available, aa authoritative, ad DNSSEC validated, tc truncated. |
| QUESTION | What was asked: the name, class (IN) and type. |
| ANSWER | The records: name, TTL in seconds, class, type and value. |
| AUTHORITY SECTION | Who is in charge of the zone; for NXDOMAIN, the SOA record of the parent zone. |
| Query time | How long the resolver took. 0–5 ms usually means the answer was cached. |
| SERVER | The resolver that answered, and whether over UDP or TCP. |
Prefer the terminal?
This page runs exactly this command; on your own computer you can drop the timing options:
dig @1.1.1.1 +time=3 +tries=1 -t MX -q example.com
dig @1.1.1.1 example.com MX
dig example.com MX +shortdig ships with macOS and most Linux systems (on Ubuntu: sudo apt install dnsutils). On Windows, nslookup -type=MX example.com 1.1.1.1 is the closest built-in command.
References
Frequently asked questions
Is this the real dig command?
Yes. Our server runs dig in a locked-down, throwaway container with exactly the command shown, and returns its output unchanged. It waits up to 3 seconds for the resolver, as set by +time=3 +tries=1.
What happens to the names I look up?
The name and result are kept for 10 minutes so this page can collect the result, then deleted. We don’t log the names you look up. The resolver you choose (Cloudflare, Google or Quad9) receives the query from our server, not from you.
Why can’t I choose ANY, PTR or other options?
To keep the server safe, it only runs the record types and resolvers listed. For the name of an IP address (PTR) and more record types, use DNS Lookup, which runs in your browser.
What does “No reply” mean?
dig gave up after 3 seconds without an answer. Usually the domain’s own name servers are slow or down, so the resolver couldn’t finish the lookup. Try again, or try another resolver.
Why is there a limit on how often I can run it?
Each lookup runs on our server, so there is a limit of about 30 per minute per network. If you see “Too many requests”, wait a minute.