Gather information from the Domain Name System servers:
Command Line Mode >>-dig--+-----------+------------------------------------------>< +-| query |-+ '- -h-------'
Multiple Query Mode >>-dig--+- +global_queryopt--+---------------+-+--------------->< | | .-----------. | | | | V | | | | '---| query |-+-' | '- -h----------------------------------'
query |--+---------+--+------+--+------+--+-------+-------------------> '-@server-' '-name-' '-type-' '-class-' .--------------------. V | >----+----------------+-+--| +queryopt |------------------------| +- -b --address--+ +- -c --class----+ +- -f --filename-+ +- -k --filename-+ +- -n------------+ +- -p --port#----+ +- -t --type-----+ +- -x --addr-----+ '- -y --name:key-'
+queryopt or +global_queryopt .----------------------------------. V | |----+------------------------------+-+-------------------------| +- +noaaonly | +aaonly---------+ +- +noadditional | +additional-+ +- +noadflag | +adflag---------+ +- +noall | +all---------------+ +- +noanswer | +answer---------+ +- +noauthority | +authority---+ +- +nobesteffort | +besteffort-+ +- +nocdflag | +cdflag---------+ +- +nocmd | +cmd---------------+ +- +nocomments | +comments-----+ +- +nodefname | +defname-------+ +- +nodnssec | +dnssec---------+ +- +nofail | +fail-------------+ +- +noidentify | +identify-----+ +- +noignore | +ignore---------+ +- +nomultiline | +multiline---+ +- +nonssearch | +nssearch-----+ +- +noqr | +qr-----------------+ +- +noquestion | +question-----+ +- +norecursive | +recursive---+ +- +nosearch | +search---------+ +- +noshort | +short-----------+ +- +nosta | +sta---------------+ +- +notcp | +tcp---------------+ +- +notrace | +trace-----------+ +- +novc | +vc-----------------+ +- +bufsize--=--B--------------+ +- +domain--=--somename--------+ +- +ndots--=--D----------------+ +- +time--=--T-----------------+ '- +tries--=--A----------------'