tldr/pages/common/host.md

21 lines
354 B
Markdown
Raw Normal View History

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