DNS(Domain Name Server) Configuration Step 1 : Get the IP Address of the machine [root#] ifconfig o/p --> 192.168.2.107 STEP 2: Open the file /etc/sysconfig/network-scripts/ifcfg-eth0 Add one line before IPADDR DNS1 = 192.168.2.107 the file looks like : DEVICE="eth0" DNS1=192.168.2.107 IPADDR=192.168.2.107 BOOTPROTO="dhcp" HWADDR="00:0C:29:40:CD:04" MTU="1500" NM_CONTROLLED="yes" ONBOOT="yes" ** Save the file STEP 3 : Open the file /etc/hosts Add the last line server server.tyit.com STEP 4 : Open the file /etc/sysconfig/network Enter the hostname HOSTNAME = server.tyit.com After change : NETWORKING=yes HOSTNAME=server.tyit.com NTPSERVERARGS=iburst ** Save the file STEP 5 : Open /etc/resolv.conf we have to add namesever IP After chnage file looks like : # Generated by NetworkManager #domain localdomain search tyit.com nameserver 192.168.2.107(Your IP) nameserver 192.168.1.98 Step 6 : Install the bind package [root#] yum install bind* Step 7 : Verify the bind packages [root#] rpmquery -qa | grep bind samba-winbind-3.5.4-68.el6.i686 bind-dyndb-ldap-0.1.0-0.9.b.el6.i686 bind-libs-9.7.0-5.P2.el6.i686 bind-utils-9.7.0-5.P2.el6.i686 bind-chroot-9.7.0-5.P2.el6.i686 PackageKit-device-rebind-0.5.8-13.el6.i686 samba-winbind-clients-3.5.4-68.el6.i686 rpcbind-0.2.0-8.el6.i686 bind-9.7.0-5.P2.el6.i686 Step 8 : Open the file /etc/named.conf Change the IP address in option section : options { listen-on port 53 { any; }; also check at the end of file : include "/etc/named.rfc1912.zones"; ** Save the file Step 9 : Open the file /etc/named.rfc1912.zones ** Chamges(first zone) zone "tyit.com" IN { type master; file "named.localhost"; allow-update { none; }; }; ** Comment Rest Zones zone "0.in-addr.arpa" IN { type master; file "named.empty"; allow-update { none; }; }; Step 10 : Open the file /var/named/named.localhost ** Perform required changes $TTL 1D @ IN SOA tyit.com. root( 0 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ NS server.tyit.com. server A 192.168.2.107 ** Save the file Step 11 : Start the named service [root#] service named start Step 12 : ReStart the named service [root#] service named restart Testing DNS [root#] host server.tyit.com server.tyit.com has IP Address 192.168.2.107 [root#] dig server.tyit.com