/etc/named.conf 파일을 수정합니다.
options {
listen-on port 53 { any; }; <- 127.0.0.1 을 any 로 변경
listen-on-v6 port 53 { ::1; };
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";
// Those options should be used carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { any; }; <- localhost 를 any 로 변경
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; }; <- localhost 를 any 로 변경
match-destinations { any; }; <- localhost 를 any 로 변경
recursion yes;
include "/etc/named.rfc1912.zones";
};