[9.20] 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.

Backport of MR !11577

Merge branch 'backport-examples-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!11579
This commit is contained in:
Ondřej Surý 2026-02-22 18:19:59 +01:00
commit eb92622f8e

View file

@ -812,6 +812,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
~~~~~~~~