当前位置:网站首页>使用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 with454 # local-zone: "local." static455 # 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 with459 # local-data: "adserver.example.com A 127.0.0.1"460 #461 # You can redirect a domain to a fixed address with462 # (this makes example.com, )463 # local-zone: "example.com" redirect464 # 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 then468 # you need to do the reverse notation yourself.469 # local-data-ptr: "192.0.2.3//反向解析参考语法470471 include: /etc/unbound/local.d/*.conf472473 # service clients over SSL (on the TCP sockets), with plain DNS inside……---------------------------------查看本机FQDN---------------------------[[email protected] ~]# hostnamelinuxprobe.example.com//由此可知,域名为example.com--------------------------------创建解析文件-----------------------------[[email protected] ~]# vim /etc/unbound/local.d/example.conflocal-zone: "example.com." staticlocal-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 ; serial1D ; refresh1H ; retry1W ; expire3H ) ; minimumNS @A 127.0.0.1AAAA ::1
边栏推荐
- Jmeter-断言
- 数据分析知识点搜集(纯粹的搜集)
- FinClip, help smart TV more imagination
- 禾匠编译错误记录
- Zilliz 2023 Fall Campus Recruitment Officially Launched!
- CAS:178744-28-0,mPEG-DSPE,DSPE-mPEG,甲氧基-聚乙二醇-磷脂酰乙醇胺供应
- Creo 9.0二维草图的诊断:重叠几何
- A simple understanding of TCP, learn how to shake hands, wave hands and various states
- ts用法大全
- ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
猜你喜欢

ML之interpret:基于titanic泰坦尼克是否获救二分类预测数据集利用interpret实现EBC模型可解释性之全局解释/局部解释案例

ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例

冰河又一MySQL力作出版(文末送书)!!

AOSP CameraLatencyHistogram的原理与使用

The super perfect layout has shortcut keys and background replacement

完全二叉树问题

override learning (parent and child)

Jmeter-参数化

软测人每个阶段的薪资待遇,快来康康你能拿多少?

The principle and use of AOSP CameraLatencyHistogram
随机推荐
curl使用指南
Scala basics [regular expressions, framework development principles]
jav一键生成数据库文档
MiniAPI of .NET6 (14): Cross-domain CORS (Part 1)
Three.js入门详解
complete binary tree problem
CAS: 178744-28-0, mPEG-DSPE, DSPE-mPEG, methoxy-polyethylene glycol-phosphatidylethanolamine supply
Jmeter-断言
Republish the lab report
Analysys Analysis: The transaction scale of China's online retail B2C market in Q2 2022 will reach 2,344.47 billion yuan
Unity 截取3D图像 与 画中画PIP的实现
ros mavros stereo读取rosbag并记录IMU和图片到文件夹
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
rsync basic usage
[Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve
rosbridge-WSL2 && carla-win11
Internship: Upload method for writing excel sheet (import)
689. 三个无重叠子数组的最大和
Creo 9.0二维草图的诊断:重叠几何
IELTS essay writing template