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:
Ondřej Surý 2026-02-22 17:20:50 +01:00
commit bc0b26439b

View file

@ -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
~~~~~~~~