当前位置:网站首页>使用unbound在RHEL7上搭建DNS服务
使用unbound在RHEL7上搭建DNS服务
2022-08-03 23:33:00 【nginx】
[[email protected] ~]# vim /etc/unbound/unbound.conf……
453 # You can add locally served data with
454 # local-zone: "local." static
455 # local-data: "mycomputer.local. IN A 192.0.2.51"
//正向解析可参考语法
456 # local-data: ‘mytext.local TXT "content of text record"‘
457 #
458 # You can override certain queries with
459 # local-data: "adserver.example.com A 127.0.0.1"
460 #
461 # You can redirect a domain to a fixed address with
462 # (this makes example.com, )
463 # local-zone: "example.com" redirect
464 # local-data: "example.com A 192.0.2.3"
465 #
# Shorthand to make PTR records, "IPv4 name" or "IPv6 name".
467 # You can also add PTR records using local-data directly, but then
468 # you need to do the reverse notation yourself.
469 # local-data-ptr: "192.0.2.3
//反向解析参考语法
470471 include: /etc/unbound/local.d/*.conf472
473 # service clients over SSL (on the TCP sockets), with plain DNS inside
……
---------------------------------查看本机FQDN---------------------------
[[email protected] ~]# hostname
linuxprobe.example.com
//由此可知,域名为example.com
--------------------------------创建解析文件-----------------------------
[[email protected] ~]# vim /etc/unbound/local.d/example.conf
local-zone: "example.com." static
local-data: "example.com. 86400 IN SOA ns.example.com. root 1 1D 1H 1W 1H"
local-data: "ns.example.com. IN A 192.168.10.10"
local-data: "linuxprobe.example.com. IN A 192.168.10.10"
local-data-ptr: "192.168.10.10 ns.example.com."
local-data-ptr: "192.168.10.10 linuxprobe.example.com."------------------------查看RHEL6上解析文件以作对比--------------------[[email protected] ~]# vim /var/named/named.localhost
$TTL 1D
@ IN SOA @ rname.invalid. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
边栏推荐
猜你喜欢
随机推荐
【论文阅读】TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
Republish the lab report
Interpretation of ML: A case of global interpretation/local interpretation of EBC model interpretability based on titanic titanic rescued binary prediction data set using interpret
HCIP BGP lab report
P1996 约瑟夫问题
简单了解下 TCP,学习握手和挥手以及各种状态到底是怎么样的
OpenCV 图像拼接
响应式织梦模板塑身瑜伽类网站
电子邮件安全或面临新威胁!
override learning (parent and child)
YOLOv7改进之二十二:涨点神器——引入递归门控卷积(gnConv)
(PC+WAP)织梦模板螺钉手柄类网站
utlis thread pool
Testng listener
[RYU] rest_router.py source code analysis
Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan
【LeetCode】最长回文子序列(动态规划)
Code Casual Recording Notes_Dynamic Programming_416 Segmentation and Subsetting
Websocket multi-threaded sending message error TEXT_PARTIAL_WRITING--Use case of spin lock replacing synchronized exclusive lock
ML之interpret:基于titanic泰坦尼克是否获救二分类预测数据集利用interpret实现EBC模型可解释性之全局解释/局部解释案例