From Linuxintro

The command host allows you to find out an IP address from a host name and the other way round:

# host has address
# host domain name pointer

If you want to query different mail servers or query for the domain's mail server (the "MX record"), use the command dig.

See also