Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 675 Bytes

File metadata and controls

25 lines (21 loc) · 675 Bytes

刷新dns缓存

sudo /etc/init.d/dns-clean start

bind9服务

官方教程

重启bind9服务

sudo systemctl restart bind9.service    

用作 缓存 服务器

  1. 编辑 /etc/bind/named.conf.options 文件 forwarders { 121.41.61.10; }; allow-query { any; }; allow-query-cache { any; };

  2. 重启服务 sudo systemctl restart bind9.service

用作 Master 服务器

  1. 新建域名, 修改 /etc/bind/named.conf.local 文件 zone "example.com" { type master; file "/etc/bind/db.example.com"; }
  2. 修改 db.example.com 文件