2) check the ip address
3) cd /var/named/chroot/etc
ls ---> localtime named.caching-nameserver.conf named.rfc1912.zones rndc.key
4) cp named.caching-nameserver.conf named.conf
5) vim named.conf
listen-on port 53 (192.168.1.11;};
# not required listen-on-v6 port 53 comment it
allow-query { any; };
match-clients { any; };
match-destinations { 192.168.1.11; };
6) vim named.rfc1912.zones
zone "mydomain.com" IN {
type master;
file "forward.zone";
allow-update{ none; };
};
zone "1.168.192.in-addr.orpa" IN {
type master;
file "reverse.zone";
allow-update { none; };
};
7) chgrp named named.conf
8) cd /var/named/chroot/var/named
ls---> data localhost.zone named.ca named.local slaves
localdomain.zone named.broadcast named.ip6.local named.zero
9) cp localdomain.zone forward.zone
10) cp named.local reverse.zone
11) vim forward.zone
@ IN SOA server.mydomain.com. root.server.mydomain.com. {
IN NS server.mydomain.com.
server IN A 192.168.1.11
12) vim reverse.zone
@ IN SOA server.mydomain.com. root.server.mydomain.com. {
IN NS server.mydomain.com.
111 IN PTR server.mydomain.com.
13) chgrp named forward.zone
chgrp named reverse.zone
14) vim /etc/hosts
192.168.1.111 server.mydomain.com server
15) vim /etc/resolv.conf
search mydomain.com
nameserver 192.168.1.11
16) check full hostname is there in /etc/sysconfig/network
17) service named restart
18) dig server.mydomain.com ----> for forward zone
19) dig -x 192.168.1.11 ---> for reverse lookup zone
20) nslookup
>server.mydomain.com
>192.168.1.11
Enjoy Binding....