yum install bind
vi /etc/named.conf
found
———–
zone “.” IN {
type hint;
file “named.ca”;
};
———–
replace with
———–
zone “.” IN {
type forward;
forward only;
forwarders { 8.8.8.8; 8.8.4.4; };
};
———–
service named start
also change the ip address to the server’s ip address, and make sure to set the allow-query settings properly
options {
listen-on port 53 { 192.168.5.100; };
allow-query { localhost;any; };