All tags
Start here · digdig for beginners, look up DNS records and read the answer13 steps · 8 min read · Beginners on Linux or macOSStart the guide dig
Narrow down
Guides1
Network33
- Tip
dig @8.8.8.8 www.google.com +subnet=203.0.113.0/24dig +subnet shows the answer a resolver gives other regionsSend an EDNS client subnet with a query to see which servers a CDN picks for another network.30 Nov 2026 - Tip
dig +yaml example.com Adig +yaml prints the whole reply in a format scripts can parseGet dig's full answer as YAML, so a script can read fields instead of scraping text.30 Nov 2026 - Tip
dig +short +identify example.com @9.9.9.9dig +short +identify adds which server gave each answerKeep the short output but see the server address and response time on every line.30 Nov 2026 - Tip
dig +short SRV _imaps._tcp.gmail.comdig SRV finds the host and port behind a service nameLook up SRV records for services like XMPP, IMAP or Minecraft to see which host and port clients use.30 Nov 2026 - Tip
dig @a.iana-servers.net CH TXT version.bind +shortdig CH TXT version.bind asks a name server what it runsQuery the CHAOS class to see which software and version a DNS server reports.30 Nov 2026 - Tip
dig @192.0.2.53 doubleclick.net A +noall +answerdig at your Pi-hole shows 0.0.0.0 for a domain it blocksCheck from any machine whether Pi-hole blocks a domain, and what the client really receives.30 Nov 2026 - Tip
dig +noall +answer example.com A example.org MX example.net NSdig takes several names and types on one command lineAsk for A, MX, NS and other records of several names in a single dig call.30 Nov 2026 - Tip
dig +short NS example.comThe aa flag in dig shows whether you asked the real name serverTell an authoritative answer from a cached one by reading the flags line.30 Nov 2026 - Tip
dig ANY cloudflare.com @ns3.cloudflare.com +noall +answerdig ANY no longer shows every record of a domainWhy ANY queries return HINFO or nothing, and what to ask instead.30 Nov 2026 - Tip
dig +qr example.com @9.9.9.9dig +qr prints the query it sends before the answerSee the exact flags and EDNS options of your outgoing query, next to the reply.30 Nov 2026 - Tip
dig @192.168.1.2 example.com AXFRdig AXFR copies a whole zone from a name server you runRequests every record of a DNS zone from a server you run.28 Nov 2026 - Tip
dig CAA example.com +shortdig CAA shows which certificate authorities may issue for your domainLists the certificate authorities that a domain's CAA records allow to issue certificates.28 Nov 2026 - Tip
dig example.com +cddig +cd skips DNSSEC validation, which shows whether validation is the problemSends a query with the checking-disabled bit to see if DNSSEC validation causes a failure.28 Nov 2026 - Tip
dig -6 example.com Adig -6 sends the query itself over IPv6, whatever record type you ask forForces dig to reach the resolver over IPv4 or IPv6, independent of the record type asked.28 Nov 2026 - Tip
dig HTTPS example.com +shortdig HTTPS example.com shows the HTTPS record browsers can look upQueries the HTTPS record type that tells browsers how a site can be reached.28 Nov 2026 - Tip
dig -b 192.168.1.20 @192.168.1.53 example.comdig -b picks which local address the query comes fromSends a dig query from a chosen local address instead of the default one.28 Nov 2026 - Tip
echo '+noall +answer' > ~/.digrc~/.digrc stores the dig options you always typeKeeps your favourite dig options in a dotfile that is read on every run.24 Nov 2026 - Tip
dig +timeout=2 +tries=1 @10.0.0.53 example.comdig +timeout=2 +tries=1 gives up on a dead server quicklySets a short timeout and a single try so failures show up fast.24 Nov 2026 - Tip
dig +multiline SOA example.comdig +multiline explains the fields of an SOA recordPrints SOA and key records over several lines with a label per field.24 Nov 2026 - Tip
dig @192.168.1.1 example.com +norecursedig +norecurse checks what a resolver already has cachedAsks a resolver for cached data only, without letting it query upstream.24 Nov 2026 - Tip
dig -p 5335 @127.0.0.1 example.com +shortdig -p queries a resolver that listens on another portQueries a DNS server that runs on a port other than 53.24 Nov 2026 - Tip
dig +noall +answer example.com Adig +noall +answer prints only the answer sectionPrints full record lines without the header, question and statistics blocks.24 Nov 2026 - Tip
dig +tls @dns.quad9.net example.comdig can speak DoH and DoT itselfTests whether a DNS server answers over encrypted DoT or DoH.16 Jul 2026 - Tip
dig +noall +answer +ttlunits example.comdig +ttlunits makes TTLs readablePrints DNS record TTLs as minutes, hours or days instead of raw seconds.7 Jul 2026 - Tip
dig +noall +answer example.comRun dig twice and watch the TTL count downShows only the answer section of a DNS lookup, so you can read the TTL.2 Jul 2026 - Tip
dig -x 9.9.9.9 +shortdig -x turns an IP address back into a nameLooks up the hostname that belongs to an IP address (reverse DNS).22 Jun 2026 - Tip
dig +trace example.nldig +trace walks the DNS tree from the rootFollows a DNS lookup from the root servers down to the authoritative answer, step by step.13 Jun 2026 - Tip
dig +short example.comdig +short gives you just the answerPrints only the answer data from a DNS lookup, without headers or statistics.7 Jun 2026 - Tip
dig +nssearch example.comdig +nssearch compares the SOA serial on every name serverQueries every authoritative name server and prints each one's SOA serial.9 May 2026 - Tip
dig +short TXT example.comdig TXT reads SPF, DKIM and DMARC records straight from DNSLooks up SPF, DKIM and DMARC settings, which are stored as TXT records.9 May 2026 - Tip
dig +tcp @192.168.1.1 example.comdig +tcp tests whether port 53 over TCP is openForces a DNS query over TCP to check that the firewall allows it.8 May 2026 - Tip
dig @1.1.1.1 example.com +nsiddig +nsid shows which anycast instance answered youAsks a DNS server to report which anycast node or instance gave the answer.8 May 2026 - Tip
dig -f names.txt +noall +answerdig -f reads a whole list of names from a fileRuns many DNS lookups from one file in a single dig call.7 May 2026
Other tips3
- Tip
dig +noall +answer DS example.comdig DS shows the key the parent zone expects you to sign withCompare the DS record at the parent with your DNSKEY key tags before and after a key change.30 Nov 2026 - Tip
dig DNSKEY example.com +noall +answer +split=0dig +split=0 keeps long keys on one unbroken lineStop dig from breaking base64 keys and hashes into chunks with spaces, so you can copy them.30 Nov 2026 - Tip
dig +dnssec example.com Adig +dnssec shows the signatures and the ad flagShows RRSIG records and whether the resolver validated the answer.9 May 2026
Shell1
Storage1
Nothing matches.