Skip to content

Instantly share code, notes, and snippets.

@lv7777
Created November 2, 2016 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lv7777/08fa3b5187fbf1b8efa411144c1cff23 to your computer and use it in GitHub Desktop.
Save lv7777/08fa3b5187fbf1b8efa411144c1cff23 to your computer and use it in GitHub Desktop.
bindのキャッシュサーバーとして動かす基本設定
//
// 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.
//
acl "localnet" {
#127.0.0.1;
#192.168.1.0/24;
#192.168.1.1;
#192.168.1.3;
#192.168.1.8;
};
options {
listen-on 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";
allow-query { any; };
recursion yes;
forward first;
forwarders{
192.168.1.1;
};
# dnssec-enable yes;
# dnssec-validation yes;
/* Path to ISC DLV key */
# bindkeys-file "/etc/named.iscdlv.key";
# managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity debug 0;
print-severity yes;
print-time yes;
print-category yes;
};
};
zone "." IN {
type hint;
file "named.ca";
};
#include "/etc/named.rfc1912.zones";
#include "/etc/named.root.key";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment