This is an old revision of the document!


The host command is designed to do lookups through the DNS server. It doesn't use /etc/hosts to resolve names.

Display lookup details

This will display which DNS server it is querying.

host -v
Reverse lookup

Find the hostname of an IP address.