host

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 beandog.org
Reverse lookup

Find the hostname of an IP address.

host 192.168.13.3