host
Lookup Domain Name Server.
- Lookup A, AAAA, and MX records of a domain:
host {domain}
- Lookup a field (CNAME, TXT,...) of a domain:
host -t {field} {domain}
- Reverse lookup an IP:
host {ip_address}
- Specify an alternate DNS server to query:
host {domain} {8.8.8.8}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).