yum install unbound -y
配置文件在这:
vi /etc/unbound/unbound.conf
修改其中的interface及access-control即可
interface: 0.0.0.0
access-control: 0.0.0.0/0 allow
启动服务:
systemctl restart unbound && systemctl enable unbound
防火墙设置:
firewall-cmd --add-service=dns --permanent firewall-cmd --reload