sudo /etc/init.d/dns-clean start
sudo systemctl restart bind9.service
-
编辑
/etc/bind/named.conf.options文件 forwarders { 121.41.61.10; }; allow-query { any; }; allow-query-cache { any; }; -
重启服务
sudo systemctl restart bind9.service
- 新建域名, 修改
/etc/bind/named.conf.local文件 zone "example.com" { type master; file "/etc/bind/db.example.com"; } - 修改
db.example.com文件