2015-12-29 14:18:59 +00:00
|
|
|
# host
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Lookup Domain Name Server.
|
2015-12-29 14:18:59 +00:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Lookup A, AAAA, and MX records of a domain:
|
2015-12-29 14:18:59 +00:00
|
|
|
|
|
|
|
`host {{domain}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Lookup a field (CNAME, TXT,...) of a domain:
|
2015-12-29 14:18:59 +00:00
|
|
|
|
|
|
|
`host -t {{field}} {{domain}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Reverse lookup an IP:
|
2015-12-29 14:18:59 +00:00
|
|
|
|
|
|
|
`host {{ip_address}}`
|
2018-10-16 12:56:02 +01:00
|
|
|
|
|
|
|
- Specify an alternate DNS server to query:
|
|
|
|
|
|
|
|
`host {{domain}} {{8.8.8.8}}`
|