Linux DNS服务器上使用转发器
Linux DNS服务器上使用转发器最主要的就是修改配置文件即可:绿色字体可有可无。
vi /etc/named.caching-nameserver.conf
options {
listen-on port 53 { 192.168.1.128; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
query-source port 53;
forward first;
forwarders { 210.21.4.130; };
allow-query { any; };
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
// match-clients { localhost; };
// match-destinations { localhost; };
recursion yes;
include "/etc/named.rfc1912.zones";
};