DNS 配置單純為轉發的DNS伺服器

weixin_33807284發表於2018-01-19

cp /etc/named.conf /etc/name.conf.raw
vim /etc/named.conf
options {
listen-on port 53 { any; };
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";
allow-query { any; };
recursion yes;
forward only;
forwarders {
218.85.152.99;
218.85.157.99;
};
};

相關文章