首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BIND9 -开放式Resolver

BIND9 -开放式Resolver
EN

Server Fault用户
提问于 2013-03-26 16:27:09
回答 1查看 1.7K关注 0票数 0

我正在运行Ubuntu12.04和bind9。我的缓存仅DNS服务器实际上是一个开放的dns解析器,所以我试图纠正这一点。

我试着跟踪本指南

named.conf

代码语言:javascript
复制
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
#include "/etc/bind/named.conf.default-zones";

named.conf.local只是包含了。

代码语言:javascript
复制
    //
    // Do any local configuration here
    //

    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";

named.conf.options

代码语言:javascript
复制
acl "trusted" {
        127.0.0.1/32;
        X.X.192.0/20;

};

options {
        recursion no;
        additional-from-cache no;
        allow-query { none; };
        dnssec-validation auto;
        auth-nxdomain no;    # conform to RFC1035
};

view "trusted" in {
        match-clients { trusted; };
        allow-query { trusted; };
        recursion yes;
        additional-from-cache yes;
        dnssec-validation auto;
        auth-nxdomain no;    # conform to RFC1035
};

我可以在没有问题的情况下重新启动bind,也可以查询bind。然而,当我测试时,我仍然是一个开放的解析器,当我查看DNS顶部时,我所有的顶级查询都来自定义范围之外的I。所以我知道我出了点问题。

EN

回答 1

Server Fault用户

回答已采纳

发布于 2013-04-02 08:04:50

这就是我所用的:

代码语言:javascript
复制
options {
    directory "/var/named/master";
    allow-recursion { 127.0.0.1; x.y.z.0/19; ...; };
    allow-transfer { 127.0.0.1; x.y.z.0/19; ...;  };
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/491518

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档