Here is an example: say my hostname is "nyteshyft", and the domain name that i am associated with is called "nyteshyft.org", and that my IP address is "126.96.36.199".
edit /etc/sysconfig/network, modify the following entries:
hostname = "nyteshyft"
domainname = "nyteshyft.org"
Restart your machine. Test your hostname and domainname:
# hostname --fqdn
Keep all your most used host names and IP addresses in /etc/hosts
127.0.0.1 localhost.localdomain.com localhost
188.8.131.52 nyteshyft.nyteshyft.org nyteshyft
Configure the DNS using /etc/resolv.conf
You can configure the order of the nameservers too with /etc/nsswitch.conf (everything else is unchanged)
i hope thats all right, worked for me, my friend told me some of it though, pretty easy once you know it