DNS configuration forward.zone reverse.zone named.conf files

IN Domain Names system It has three important files
Named.conf it is located in
/var/named/chroot/etc/named.conf
And there data are
options
{
directory "/var/named";
};
include "/etc/rndc.key";
zone "student.com" IN
{
type master;
file "forward.zone";
allow-update { none; };
};
zone "0.0.223.in-addr.arpa" IN
{
type master;
file "reverse.zone";
allow-update { none; };
};


Forward.zone and reverse.zone located int /var/named/chroot/var/named/
Forward.zone it convert system name to the IP address using resource record A
@ IN SOA student.com. root.www.student.com.

@ IN NS student.com.
www IN A 223.0.0.1
www1 IN A 223.0.0.2
www3 IN A 223.0.0.45


Reverse.zone it conver Ip address to the System name using PTR resource Record
@ IN SOA 0.0.223.in-addr.arpa root.www.student.com.

@ IN NS student.com.
1 IN PTR www.student.com.
2 IN PTR www1.student.com.
45 IN PTR www3.student.com.

Related post