DNS

我怕爱的太早我们不能终老 提交于 2019-11-27 09:20:24

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"

 


~

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!