tldr/pages/common/host.md

20 lines
307 B
Markdown
Raw Normal View History

2015-12-29 17:18:59 +03:00
# host
> Lookup Domain Name Server.
2015-12-29 17:18:59 +03:00
- Lookup A, AAAA, and MX records of a domain:
2015-12-29 17:18:59 +03:00
`host {{domain}}`
- Lookup a field (CNAME, TXT,...) of a domain:
2015-12-29 17:18:59 +03:00
`host -t {{field}} {{domain}}`
- Reverse lookup an IP:
2015-12-29 17:18:59 +03:00
`host {{ip_address}}`
- Specify an alternate DNS server to query:
`host {{domain}} {{8.8.8.8}}`