Skip to main content

host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa.

# To lookup A, AAAA, and MX records of a domain
host domain

# To lookup a field (CNAME, TXT,...) of a domain
host -t field domain

# To reverse lookup an IP
host ip_address