AppSrv
将这段删除
注释并添加新的配置文件
3. vi /etc/named.zones
4.在InsideCli客户端测试
IspSrv
1.安装相关软件包
apt -y install bind*
2.vi /etc/default/bind9
3. 创建 /var/named/chroot 文件夹
mkdir -p /var/named/chroot
4.cd /var/named/chroot
mkdir -p { dev,etc,var/cache/bind,run/named}
cd /var/named/chroot/dev
mknod null c 1 3
mknod random c 1 8
mknod urandom c 1 9
5.cd /var/named/chroot/etc
cp -p /etc/localtime ./
mv /etc/bind ./
6.cd /var/named/chroot/etc/bind
cat named.conf.options > named.conf
vi named.conf
7. cd /var
chown -R bind:bind /var/named/chroot
8. /etc/init.d/bind9 restart
9. systemctl restart bind9 systemctl status bind9
10. cd /var/named/chroot/etc/bind
cp -p db.localhost db.root
cp -p db.127 db.chinaskills.cn
11. vi /var/named/chroot/etc/bind/db.root
根据需求修改内容即可
12. 修改bind9 的版本号
vi /var/named/chroot/etc/bind/named.conf