Resolves a host name into an Internet address or an Internet address into a host name.
host [ -a ] [ -c Class ] [ -d ] [ -n ] [ -r ] [ -t Type ] [ -v ] [ -w ] [ -z ] [ Hostname | Address ] [ Server ]
The /usr/bin/host command returns the Internet address of a host machine when the HostName parameter is specified and the name of the host when the Address parameter is specified. The host command also displays any aliases associated with the HostName parameter.
If the local host is using the DOMAIN protocol, the local or remote name server database is queried before searching the local /etc/hosts file.
The host command may also return other name records found in the DNS (Domain Name System). The -z flag specifies this mode. The other flags allow for the customization of the query.
Address | Specifies the Internet address of the host machine to use in resolving the host name. The Address parameter must be a valid Internet address in dotted decimal format. |
HostName | Specifies the name of the host machine to use in resolving the Internet address. The HostName parameter can be either a unique host name or a well-known host name (such as nameserver, printserver, or timeserver, if these exist). |
Server | Specifies the nameserver to query. |
host mephistoInformation similar to the following is displayed:
mephisto is 192.100.13.5, Aliases: engr, sarah
host 192.100.13.1Information similar to the following is displayed:
mercutio is 192.100.13.1
/etc/hosts | Contains the Internet Protocol (IP) name and addresses of hosts on the local network. |
The hostname command.
The named daemon.
Network Overview in AIX Version 4.3 System Management Guide: Communications and Networks.