Skip to content

Instantly share code, notes, and snippets.

@t-min
Created March 21, 2018 10:08
Show Gist options
  • Save t-min/fa7726d05126564d2fc39be6fc6aa5ee to your computer and use it in GitHub Desktop.
Save t-min/fa7726d05126564d2fc39be6fc6aa5ee to your computer and use it in GitHub Desktop.
acl tmin-net {
192.168.11.0/27;
127.0.0.1;
};
options {
directory "/var/cache/bind";
pid-file "/var/run/named/named.pid";
recursion yes;
allow-query { tmin-net; };
allow-recursion { tmin-net; };
allow-query-cache { tmin-net; };
forwarders { XXX.XXX.XXX.XXX;XXX.XXX.XXX.XXX; }; //プロバイダのDNSサーバのIPとか
listen-on-v6 { none;};
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "local.zone";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "local.rev";
};
logging {
channel "default-log" {
file "/var/log/named/default.log" versions 7 size 10m;
severity info;
print-severity yes;
print-time yes;
};
category default { "default-log"; };
channel "queries-log"{
file "/var/log/named/queries.log" versions 3 size 5M;
severity info;
print-time yes;
print-severity yes;
print-category yes;
};
category queries { "queries_log;" };
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment