Yum Install bind Bind-chroot
[Email protected] named]# cat/etc/named.conf
Options {
Directory "/var/named";
};
Zone "." in {
Type hint;
File "named.ca";
};
Zone "localhost" in {
Type master;
File "Named.localhost";
};
Zone "0.0.127.in-addr.arpa" in {
Type master;
File "Named.loopback";
};
Zone "sxlfxx.cn" in {
Type master;
File "Sxlfxx.cn.zone";
};
[Email protected] named]# Cat/var/named/sxlfxx.cn.zone
$TTL 86400
znke.cn. In SOA ns1.sxlfxx.cn. admin.sxlfxx.cn. (
2014121001
1H
5M
The
6H)
In NS ns1
In MX ten Mail
NS1 in A 192.168.3.5
Mail in A 192.168.3.5
www in A 182.92.166.130
Test in A 114.112.96.62
FTP in CNAME www
If not ... Copy the two configuration files to
/var/named/chroot/etc/named.conf
/var/named/chroot/var/named/sxlfxx.cn.zone
This article is from the "→おyǒňɡ Zhi ℃" blog, please be sure to keep this source http://sxlfxx.blog.51cto.com/4244111/1707598
Intranet DNS Configuration