1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

BINDの基本的なアクセス制限

Posted at

はじめに

BINDを構築した際のセキュリティ設定としてnamed.confに最低限(?)必要なアクセス制限周りのメモとして。

allow-queryの設定

  • allow-query { any;};
    すべてのIPからDNSの問い合わせに応答する

  • allow-query { trust;};
    許可リストを作成する

許可リスト作成の例

allow-query { trust;};
    acl trust {
        192.168.1.0/24;
        localhost;
    };

allow-recursionの設定

  • 再帰的なクエリのを許可するホストを指定する
    再帰的なクエリ…リゾルバからの問い合わせ要求を受けたDNSサーバが、他のDNSサーバに問い合わせを行い その最終的な結果をリゾルバに応答する必要のある問い合わせのこと。
    options {
        allow-recursion {
        localhost;
        192.168.1.0/24;
        ;
    };

allow-transferの設定

  • ゾーン転送を許可するホストを指定する
    ゾーン転送…DNSにおいてDNSサーバの管理するゾーン情報を別のコンピュータに一括して転送すること
    options {
        allow-transfer {
        localhost;
        192.168.1.0/24;
        };
    }
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?