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 "128.1.1.2".
Code:
edit /etc/sysconfig/network, modify the following entries:
hostname = "nyteshyft"
domainname = "nyteshyft.org"
Restart your machine. Test your hostname and domainname:
Code:
# hostname
nyteshyft
# hostname --fqdn
nyteshyft.nyteshyft.org
# dnsdomainname
nyteshyft.org
Keep all your most used host names and IP addresses in /etc/hosts
Code:
127.0.0.1 localhost.localdomain.com localhost
128.1.1.2 nyteshyft.nyteshyft.org nyteshyft
Configure the DNS using /etc/resolv.conf
Code:
search nyteshyft.org
nameserver 0.0.0.0
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