If you were to log in as root (or use
su - or
sudo) and enter
in a terminal window on that server, you should see the name of the server. If you don't, chances are that you either do not have
/etc/HOSTNAME or you do and it's empty.
You should carefully read the manual page (
man hostname) for options.
Addition.
You may want to double-check your network configuration; if you're using fixed-IP addressing, do you have the correct IP address set for the server, netmask and gateway server. Can you ping the gateway.
If your servers are using fixed-IP do you have entries in
/etc/hosts for them; e.g.,
Code:
# For loopbacking.
127.0.0.1 localhost
192.168.1.10 thisserver.domain thisserver
192.168.1.20 thatserver.domain thatserver
192.168.1.30 otherserver.domain otherserver
If you have an internal; i.e., running on your LAN, domain name system (DNS) server, do you have its address in
/etc/resolv.conf; e.g.,
Code:
search com
nameserver xx.xx.xxx.x # Local DNS server
nameserver xx.xx.xxx.x # External DNS server
And last but not least, is the cable plugged in?
Hope this helps some.