网站首页 > 资源文章 正文
安装
yum install bind
配置
vim /etc/named.conf
配置文件如下:
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
recursing-file "/var/named/data/named.recursing";
secroots-file "/var/named/data/named.secroots";
allow-query { 0.0.0.0/0; };
forward first;
forwarders {114.114.114.114;223.8.8.8;8.8.8.8;};
/*
- If you are building an AUTHORITATIVE DNS server, do NOT enable recursion.
- If you are building a RECURSIVE (caching) DNS server, you need to enable
recursion.
- If your recursive DNS server has a public IP address, you MUST enable access
control to limit queries to your legitimate users. Failing to do so will
cause your server to become part of large scale DNS amplification
attacks. Implementing BCP38 within your network would greatly
reduce such attack surface
*/
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.root.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
按照上图标注修改
systemctl start named
systemctl enable named
systemctl status named.service
修改客户端dns即可。
猜你喜欢
- 2024-09-08 Raid卡和磁盘设置(raid磁盘阵列卡)
- 2024-09-08 服务器托管单线、双线、多线主机有什么区别?
- 2024-09-08 Nginx 反向代理 + 缓存 + 静态资源服务器 + 负载均衡
- 2024-09-08 开源服务器被曝7漏洞!可引起DNS缓存中毒并远程执行恶意代码
- 2024-09-08 搭建家用、商用免费云盘、云存储,云桌面系统TrueNAS-安装篇三
- 2024-09-08 一篇文章快速理解微服务架构(微服务架构体系是什么)
- 2024-09-08 服务器的中间件之分布式缓存(分布式常用中间件)
- 2024-09-08 Linux服务器如何查看CPU使用率、内存占用情况
- 2024-09-08 手把手教你写一个静态资源中间件,加深服务器对文件缓存的理解
- 2024-09-08 浅谈C/S和B/S架构的工作原理及优缺点
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- 电脑显示器花屏 (79)
- 403 forbidden (65)
- linux怎么查看系统版本 (54)
- 补码运算 (63)
- 缓存服务器 (61)
- 定时重启 (59)
- plsql developer (73)
- 对话框打开时命令无法执行 (61)
- excel数据透视表 (72)
- oracle认证 (56)
- 网页不能复制 (84)
- photoshop外挂滤镜 (58)
- 网页无法复制粘贴 (55)
- vmware workstation 7 1 3 (78)
- jdk 64位下载 (65)
- phpstudy 2013 (66)
- 卡通形象生成 (55)
- psd模板免费下载 (67)
- shift (58)
- localhost打不开 (58)
- 检测代理服务器设置 (55)
- frequency (66)
- indesign教程 (55)
- 运行命令大全 (61)
- ping exe (64)
本文暂时没有评论,来添加一个吧(●'◡'●)