yum install unbound
vim /etc/unbound/unbound.conf
vim /etc/unbound/local.d/qin.com.conf
[root@www ~]# vim /etc/unbound/local.d/qin.com.conf
domain-insecure:"qin.com."
local-zone: "qin.com." static
local-data:"qin.com. 86400 IN SOA ns.qin.com. root.qin.com. 120000 86400 3600 10800 86400"
local-data:"qin.com. IN NS ns.qin.com."
local-data:"qin.com. IN MX 10 mail.qin.com."
local-data:"qin.com. IN MX 20 smtp.qin.com."
local-data:"ns.qin.com. IN A 192.168.150.136"
local-data:"mail.qin.com. IN A 192.168.150.136"
local-data:"smtp.qin.com. IN A 192.168.150.136"
local-data:"qin1.qin.com. IN A 192.168.150.200"
local-data:"qin2.qin.com. IN A 192.168.150.136"
local-data-ptr:"192.168.150.136 ns.qin.com."
local-data-ptr:"192.168.150.200 qin1.com."
[root@www ~]# unbound-checkconf #检查语法
[root@www ~]# systemctl restart unbound
辅助DNS写以下信息
[root@www ~]# vim /etc/unbound/local.d/qin.com.conf
domain-insecure:"qin.com."
forward-zone:
name:"."
forward-addr:"192.168.150.136"
~