Refer to this link:

http://www.xenocafe.com/tutorials/linux/redhat/change_hostname_without_reboot/index.php

(dah malas nak mengarang..eheh)