码迷,mamicode.com
首页 > 其他好文 > 详细

DNS

时间:2019-08-15 09:43:03      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:roo   unbound   add   语法   conf   辅助dns   forward   www   emctl   

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"

 


~

DNS

标签:roo   unbound   add   语法   conf   辅助dns   forward   www   emctl   

原文地址:https://www.cnblogs.com/smlie/p/11355746.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!