DNS

yum install unboundvim

vim /etc/unbound/unbound.confdom

vim /etc/unbound/local.d/qin.com.confspa

 

[root@www ~]# vim /etc/unbound/local.d/qin.com.confrest

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  #檢查語法im

[root@www ~]# systemctl restart unboundyum

 

輔助DNS寫如下信息static

[root@www ~]# vim /etc/unbound/local.d/qin.com.confvi

domain-insecure:"qin.com."
forward-zone:
        name:"."
        forward-addr:"192.168.150.136"
mail

 


~

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息