Set a static ip address by using these commands….
system-config-network
or
ifconfig eth0 xxx.xxx.x.xx (replace x with ip address)
Edit /etc/sysconfig/network with ur favorite editor and type the hostname/computer name
hostname=computername
open /etc/sysconfig/network-scripts/ifcfg-eth0 and set as
peerdns=no
open /etc/resolv.conf
search hostname (i.e. computername)
nameserver (i.e. the IP u assigned earlier)
nameserver (i.e. secondary address)
chekc the file /etc/hosts and make sure the same IP is there
Now start the following….
service named restart
chkconfig named on
Check as:
dig -x xxx.xxx.x.xx (replace x with ur ip address)
Discuss This Question: 1  Reply