Unix hostname, hosts, and sysconfig/network
One of our Unix servers turned up with an incorrect hostname.
This page has tips to verify your Unix hostname.
The uname command
To verify the hostname using the "uname" command:
$ uname -n
The hostname command
To verify the hostname using the "hostname" command:
$ hostname -a
$ hostname -s
$ hostname -d
$ hostname -f
$ hostname
System files
To verify the hostname in important system files:
$ more /etc/hostname
$ more /etc/hosts
$ more /etc/sysconfig/network
What's Next?
blog comments powered by