3、使用ifconfig命令和route命令配置实验机的IP地址、子网掩码、网关,编辑⼀etc⼀resolv.conf文件,设置DNS

2024-11-18 08:28:50
推荐回答(1个)
回答1:

acl "trust-lan" { 127.0.0.1/8; 192.168.0.0/16;};
options {
directory "/usr/local/named/etc/";
pid-file "/var/run/named/named.pid";
version "0.0.0";
datasize 40M;
allow-transfer {
"trust-lan";};
recursion yes;
allow-notify {
"trust-lan";
};
allow-recursion {
"trust-lan";
};
auth-nxdomain no;
#forward only;
forwarders {
192.168.0.201;
192.168.0.202;};
};
logging {
channel warning
{ file "/var/log/named/dns_warnings" versions 3 size 1240k;
severity warning;
print-category yes;
print-severity yes;
print-time yes;
};
channel general_dns
{ file "/var/log/named/dns_logs" versions 3 size 1240k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { warning; };
category queries { general_dns; };
};
#zone "." {
#type hint;
#file "named.root";
#};
acl "CNC" {
58.16.0.0/16;
58.17.0.0/17;
58.17.128.0/17;
58.18.0.0/16;
58.19.0.0/16;
58.20.0.0/16;
58.21.0.0/16;
192.168.32.0/24;
"/usr/local/named/etc/named.conf" 88L, 1501C