Configuration parsing forward zone
to baidu.com CASE STUDY:
(1) defining area
in the main configuration file or configuration file secondary master profile achieved
Zone "ZONE_NAME" the IN {
type {Master | Slave | hint | Forward}
File " ZONE_NAME.zone ";
};
Note: is the domain name of the region
(2) to establish the zone data files
to establish the zone data file in / var / named directory
Vim /var/named/baidu.com.zone
the TTL: recorded on the server dns cache duration
@ domain name server iN start of authority record corresponding to the primary domain name server administrator e-mail to. Instead of a common type of @
The serial number, inspection time, retry time, buffer time expires
rights and is a group Review:
chgrp the named /var/named/baidu.com.zone
the chmod /var/named/baidu.com.zone = O
Check Syntax Error:
checkconf-the named
the named-checkzone
(. 3) so that the server reloads profile and regional data file
rndc reload or
systemctl reload named.service
Main configuration:
Modify the global configuration file vim /etc/named.conf:
Modify zone configuration file vim /etc/named.rfc1912.zones (modeled to add)
Modify the zone data file:
vim /var/named/baidu.com.zone
Turn off the firewall and modify configuration files dns
systemctl stop firewalld.service
setenforce 0
systemctl start named
echo "nameserver 192.168.102.141" > /etc/resolv.conf
named-checkzone baidu.com /var/named/named.baidu.com
Analytical reverse zone configuration:
In baidu.com CASE STUDY:
(1) defining area
in the main configuration file or configuration file secondary master profile achieved
Zone "ZONE_NAME" the IN {
type {Master | Slave | hint | Forward}
File "ZONE_NAME.zone";
};
Note: reverse-segment address addr.arpa .in;
102.168.192.in-addr.arpa
(2) to establish a library file area analysis (the PTR)
Vim /var/named/102.168. 192.zone
rights and is a set of modifications:
chgrp named /var/named/baidu.com.zone
chmod o = /var/named/baidu.com.zone
Check Syntax Error:
the named-checkconf
the named-checkzone
(. 3) so that the server reloads profile and regional data file
rndc reload or
systemctl reload named.service
The main steps:
Modification area profiles based on the above vim /etc/named.rfc1912.zones
vim /var/named/192.168.102.zone
named-checkzone 102.168.192.in-addr.arpa /var/named/192.168.102.zone
Note: The above is the main configuration, other rights, rndc, also need to configure