Service name is named. It has the three configuration file named.conf
Forward.zone and reverse.zone.first install DNS by through following command
[root@rhel5 ~]# yum install bind* cachi*
After install file edit the configuration file
/var/named/chroot/etc/named.conf
options
{
directory "/var/named";
};
include "/etc/rndc.key";
zone "domainname.com" IN
{ type master; file forward.zone; allow-update { none; } };
zone "0.168.192.in-addr.arpa" IN
{type master; file reverse.zone; allow-update { none; }};
After install file give forward.zone and revers.zone file
Then edit forward.zone and reverse.zone file located in /var/named/chroot/var/named
I indicate the important thing in the DNS configuration Screen shot. For forward.zone and reverse.zone file .
Forward Zone Syntax
Host Name IN(internet) A(Address) IP ADDRESS
Reverse Zone Syntax
IP ADDRESS IN(internet) PTR(Pointer) Host Name
Go to the /etc/resolv.conf file give the server name and ip address
Search rhel5.com
Nameserver 192.168.0.1
Then add host /etc/hosts
After configure these all the things restart the service
0 comments:
Post a Comment