Use the z/OS UNIX hostname command to display the fully qualified DNS host name of the local system.
.----------------------. V .- - c ------------. | >>-hostname--+---+------------------+-+-+---------------------->< | | (1) | | | +- - c ------------+ | | | (1) | | | +- - g ------------+ | | | (1) | | | +- - r ------------+ | | +- - s ------------+ | | +- - p --stackname-+ | | '- - d ------------' | +- - h --------------------+ '- - ? --------------------'
Specifies the fully qualified host name (the host name with its appended domain name). The host name is obtained with the __iphost() function call. The host name portion of the displayed name is the value of the z/OS® UNIX user's TCPIP.DATA HOSTNAME statement. The domain name portion of the displayed name is the value of the z/OS UNIX user's TCPIP.DATA DomainOrigin statement or the first domain name that is specified by the SEARCH statement.
Specifies the host name without the domain name. The host name is obtained by using the gethostname() function call. The displayed name is the value of the TCPIP.DATA HOSTNAME statement for the TCP/IP stack.
Specifies the fully qualified host name (the host name that is returned by a gethostname() function call), apppended with the domain name. The returned host name is the value of the TCPIP.DATA HOSTNAME statement for theTCP/IP stack. The gethostbyname() call uses the TCPIP.DATA resolver statements of the z/OS UNIX user to obtain the fully qualified host name. Based on those statements, Domain Name Servers (DNS) and resolver local host tables are used for the name resolution. The displayed name is the result of the name resolution.
Specifies the host name without the domain name. The host name is obtained by using the __iphost() function call. The displayed name is the value of the TCPIP.DATA HOSTNAME statement of the z/OS UNIX user.
Specifies which TCP/IP stack the -g or -r parameter uses for its gethostname() function call.