dig: add more examples (#5416)

add-set-more-info-link.py
Stanley Ulili 2021-03-12 00:55:01 +02:00 committed by GitHub
parent 8505e55b56
commit 59fef1dcf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -1,14 +1,19 @@
# dig
> DNS Lookup utility.
> More information: <https://manpages.debian.org/buster/dnsutils/dig.1.en.html>.
- Lookup the IP(s) associated with a hostname (A records):
`dig +short {{example.com}}`
- Lookup the mail server(s) associated with a given domain name (MX record):
- Get a detailed answer for a given domain (A records):
`dig +short {{example.com}} MX`
`dig +noall +answer {{example.com}}`
- Query a specific DNS record type associated with a given domain name:
`dig +short {{example.com}} {{A|MX|TXT|CNAME|NS}}`
- Get all types of records for a given domain name: