Steps Setting Up a Primary Name Server:
- Check your ip using ifconfig command.
In this example the ip of the system is 192.168.216.131 and FQDN (fully qualified domain name) is “kalwa2.home.com”.
- Add entry below entry in the file /etc/sysconfig/network-scripts/ifcfg-eth0
DNS1=192.168.216.131
e.g.
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
BOOTPROTO=”dhcp”
HWADDR=”00:0C:29:9F:B1:76″
IPV6INIT=”no”
DNS1=192.168.216.131
NM_CONTROLLED=”yes”
ONBOOT=”yes”
3. Add below entry in the /etc/hosts file.
192.168.216.131 kalwa2.home.com kalwa
4. Add below entry in the /etc/sysconfig/network
HOSTNAME=kalwa2.home.com
Leave a Reply