DNS
Posted smlie
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DNS相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章
DNS简介DNS工作原理DNS正反向解析的搭建DNS主从备份DNS子域创建