(1) /etc/named.boot 文件的配置
;Boot file for Primary Master Name Server
;type domain Source file or host
directory /etc/named.d
primary jsjzx.edu named.hosts ;域名对应的主机文件
primary jsjzx2.edu named.hosts ;虚拟域名
primary 50.43.210.in-addr.arpa named.rev ;IP地址反向解析对应的文件
primary 0.0.127.in-addr.arpa named.local ;本机回送IP地址反向解析对应的文件
cache . root.cache ;DNS高速缓存对应的文件
(2) /etc/named.d/named.soa 文件的配置
; Don't forget to increment the serial number when you change this.
; SCCS might be a good idea here.
;
@ IN SOA www.jsjzx.edu. ( ;主名字服务器
1997021714 ;Serial序列号,如果修改区文件,必须根据时间增加这个序列号
10800 ;Refresh
1800 ;Retry
3600000 ;Expire
86400 ) ;Minimum
IN NS www.jsjzx.edu. ;完整的域名
IN NS www1.jsjzx.edu. ;虚拟域名
IN NS www2.jsjzx2.edu. ;虚拟域名
(3) /etc/named.d/named.hosts文件的配置
; Don't forget to increment the serial number in named.soa
$INCLUDE named.soa ;下载named.soa 文件的内容
localhost IN A 127.0.0.1
IN MX 10 www.jsjzx.edu.
www IN A 210.43.50.4 ;主机www对应的IP地址
IN MX 10 www.jsjzx.edu.
www1 IN A 210.43.50.5 ;虚拟主机
IN MX 10 www.jsjzx.edu.
www2 IN A 210.43.50.6 ;虚拟主机
IN MX 10 www.jsjzx.edu.
(4) /etc/named.d/named.rev文件的配置
; Don't forget to increment the serial number in named.soa
$INCLUDE named.soa ;下载named.soa文件的内容
4 IN PTR www.jsjzx.edu. ;与named.boot文件中primary 50.43.210.in-addr.arpa named.rev
;记录对应,是210.43.50网段中的主机号。
5 IN PTR www.jsjzx.edu. ;虚拟域名
6 IN PTR www.jsjzx.edu. ;虚拟域名