When I want www.tx.com have two interfaces, one for 192.168.224.0/24, a user on the network for users outside the network 192.168.1.0/24;
---- that we need to queries from the network www.tx.com of IP is 192.168.224.35; not a query from the network to the www.tx.com of IP-192.168.1.35;
then to how to deal with it? ------ view function
view:让不同来源的用户,获取到自己的zone响应
About the implementation of the following:
1. Edit the main configuration file the /etc/named.conf
------ First, I introduced one by one the following configuration:
1>acl in --> “in” 名字代表客户端为192.168.224.0/24的来源;
acl out --> “out”名字代表客户端为非192.168.224.0/24的来源;
2>view "lan" -->只是一个名字,代表内网;
3>match-clients { "in"; }; --> 吻合“in”这个来源的用户才能使用以下的zone;
4>view "wan"一样,但是因为外网没有使用到内网的IP,所以不用写IP反解部分;
(注意的是“lan”“wan”两者的“tx.com”的区域文件名字要不相同)
2. The following configuration file /var/named/named.tx.com zone
modifying an IP address associated
restart test service as follows:
1> 192.168.224.129 network users to use the test www.tx.com
2> 192.168 use external users. 1.129 test www.tx.com