hostname

hostname – show or set the system’s host name
domainname – show or set the system’s NIS/YP domain name
dnsdomainname – show the system’s DNS domain name
nisdomainname – show or set system’s NIS/YP domain name
ypdomainname – show or set the system’s NIS/YP domain name
nodename – show or set the system’s DECnet node name

 

hostname [-v] [-a] [–alias] [-d] [–domain] [-f] [–fqdn] [-i] [–ip-address] [–long] [-s] [–short] [-y] [–yp] [–nis] [-n] [–node]

hostname [-v] [-F filename] [–file filename] [hostname]

domainname [-v] [-F filename] [–file filename] [name]

nodename [-v] [-F filename] [–file filename] [name]

hostname [-v] [-h] [–help] [-V] [–version]

dnsdomainname [-v]
nisdomainname [-v]
ypdomainname [-v]

 

cat /etc/hosts

 

Hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networking programs to identify the machine. The domain name is also used by NIS/YP.