Which of these ways can be used to only allow access to a DNS server from specified networks/hosts?
A. Using the limit{...;}; statement in the named configuration file.
B. Using the allow-query{...;}; statement in the named configuration file.
C. Using the answer only{...;}; statement in the named configuration file.
D. Using the answer{...;}; statement in the named configuration file.
E. Using the query access{...;}; statement in the named configuration file.
题解
「named.conf」设置档中,可以在「options」区块内使用「allow-query」来指定允许访问这台 DNS 服务器的主机或是网络。例如:
options {
allow-query { 192.168.100.0/24; 168.95.162.1/32; 168.95.100.1/32; };
};
也可以使用「acl」替一个或多个主机与网络定义一个名称。例如:
acl internals { 192.168.10.0/24; };
options {
allow-query { 192.168.100.0/24; 168.95.162.1/32; 168.95.100.1/32; internals; };
};
