Technical data

dig
Keyword Abbreviation Default Description
[
no
]
stats st st
Display query statistics.
[
no
]
Header H H
Display basic header.
[
no
]
header he he
Display header flags.
[
no
]
ttlid tt tt
Display TTLs.
[
no
]
cl nocl
Display class information.
[
no
]
qr noqr
Display outgoing query
[
no
]
reply rep rep
Display reply.
[
no
]
ques qu qu
Display question section.
[
no
]
answer an an
Display answer section.
[
no
]
author au au
Display authoritative section.
[
no
]
addit ad ad
Display additional section.
pfdef
Set to default display flags.
pfmin
Set to minimal default display
flags.
pfset=#
Set display flags to # (# can be
hexadecimal, octal, or decimal).
pfand=#
Bitwise and display flags with #.
pfor=#
Bitwise or display flags with #.
Examples
The following examples show how to use the
dig
command.
1.
$ dig
; <<>> DiG 8.1 <<>>
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUERY SECTION:
;; ., type = NS, class = IN
;; ANSWER SECTION:
. 1d20h1m11s IN NS E.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS D.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS A.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS H.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS C.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS G.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS F.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS B.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS J.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS K.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS L.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS M.ROOT-SERVERS.NET.
. 1d20h1m11s IN NS I.ROOT-SERVERS.NET.
A–8 Troubleshooting Utilities Reference