Either you edit your /etc/hosts file if you want some other name than localhost / localhost.localdomain for your 127.0.0.1 IP.
Code:
127.0.0.1 localhost localhost.localdomain your.host.name
Other way is to edit zones in your local DNS server. Or if you just want to set hostname, you can edit /etc/sysconfig/network file and add entry like this.
Code:
HOSTNAME=your.host.com