重启服务
(3)、从DNS 服务器:192.168.1.64: #先定义密钥
#采用密钥进行同步
vim /var/named/chroot/etc/named.conf //
// named.conf //
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only). //
// See /usr/share/doc/bind*/sample/ for example named configuration files. //
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; }; directory \
dump-file \\
statistics-file \_stats.txt\
memstatistics-file \amed_mem_stats.txt\ allow-query { any; }; recursion yes;
dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* Path to ISC DLV key */
bindkeys-file \ };
logging {
channel default_debug {
file \ severity dynamic; }; };
zone \IN { type hint;
file \ };
key abckey { #先定义密钥名 algorithm hmac-md5;
secret \==\ };
zone \IN { type slave;
file \
masters { 192.168.31.64 key abckey; }; #采用密钥进行同步
};
include \ 重启服务进行测试:
[root@xuegod63 chroot]# cd
[root@xuegod63 ~]# service named restart
Stopping named:
. [ OK ] Starting name
d: [ OK ] [root@xuegod63 ~]# 从DNS服务器:
rm -rf /var/named/chroot/var/named/slaves/xuegod.cn.zone.file
ls /var/named/chroot/var/named/slaves/ 测试工具:
nslookup 测试域名解析 (1)非交互式模式
语法: nslookup 域名或IP 地址