I have a small pc running fedora 9 and I'm having problems getting it to recognise a change in its hostname. It hosts a small website, just for use on the internal network, which I browse to using "http://webserver
". To achieve this, I had changed the machines hostname to be "webserver" and setup a basic samba service. This was all working fine.
However, I needed to change the hostname of the computer (to "webserver1"), and I can't get it to work. When I query the hostname whilst logged onto the computer it returns "webserver1" as it should, but I can't ping this hostname from any other computer. Oddly, I can ping the old hostname fine, and even use it to browse to the website. I have made the changes in the following places:
-eth2 <- this is the only NIC being used, it has a static IP
Note I haven't added anything in /etc/hosts because these computers are not on a domain and so I can't get a FQDN.
At this point I thought it was just the dns server that needed flushing, but this didn't resolve the problem. I've even connected it to a network it has never seen before, but it is still only responding to the old hostname.
Is there anything else I need to change to get this hostname recognised?