mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-23 02:28:55 -04:00
chg: doc: Add examples to the dig man page
Add a set of short examples at the end of the dig manual page to help new or infrequent users figure out the most basic ways to use dig. Merge branch 'examples' into 'main' See merge request isc-projects/bind9!11577
This commit is contained in:
commit
bc0b26439b
1 changed files with 23 additions and 0 deletions
|
|
@ -839,6 +839,29 @@ Files
|
|||
|
||||
``${HOME}/.digrc``
|
||||
|
||||
Examples
|
||||
~~~~~~~~
|
||||
|
||||
Only display the IP address(es) for example.com::
|
||||
|
||||
dig +short example.com
|
||||
|
||||
Query the nameserver f.gtld-servers.net for example.com::
|
||||
|
||||
dig @f.gtld-servers.net example.com
|
||||
|
||||
Look up the TXT record for example.com::
|
||||
|
||||
dig txt example.com
|
||||
|
||||
Look up the hostname for an IP with reverse DNS::
|
||||
|
||||
dig -x 192.0.2.1
|
||||
|
||||
Display a much shorter output with just the name, record type, TTL, and value for each answer::
|
||||
|
||||
dig +noall +answer example.com
|
||||
|
||||
See Also
|
||||
~~~~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue