当前位置:首页 > 域名主机相关 > 正文内容

named配置DNS转发 代理8.8.8.8

oozj3个月前 (04-26)域名主机相关792

//

// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
options {
listen-on port 53  { any; };
listen-on-v6 port 53  { any; };
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     { any; };
forward first;
forwarders      {
8.8.8.8;
1.1.1.1;};
/*
- 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 no;
dnssec-validation no;
/* 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";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

扫描二维码推送至手机访问。

版权声明:本文由千城笔记发布,如需转载请注明出处。

本文链接:https://oozj.org/43.html

分享给朋友:

相关文章

您的连接不是私密连接没有任然继续按钮

您的连接不是私密连接没有任然继续按钮

转自https://segmentfault.com/a/1190000040074507?utm_source=sf-similar-article换了个电脑,chrome访问网站又遇到了“您的连接...

如何保存 gb688 GB库文件为PDF

如何保存 gb688 GB库文件为PDF

http://c.gb688.cn/bzgk/gb/showGb?type=online&hcno= F12打开控制台,输入PDFViewerApplication.save()即可下载...

win11始终在任务栏显示所有图标

win11始终在任务栏显示所有图标

管理员运行cmd 输入 explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} 反复点击复选框然后确定保存...

win11显示以前的右键菜单

win11显示以前的右键菜单

在shell 管理员里运行reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocS...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。