「Bindの設定」の版間の差分
提供: sha.ngri.la
細 |
細 |
||
3行目: | 3行目: | ||
*[http://www.atmarkit.co.jp/flinux/index/indexfiles/bind9index.html 連載記事 「実用 BIND 9で作るDNSサーバ」] | *[http://www.atmarkit.co.jp/flinux/index/indexfiles/bind9index.html 連載記事 「実用 BIND 9で作るDNSサーバ」] | ||
*[http://akab.blog.so-net.ne.jp/2012-07-17 BIND の エラー 「no current owner name」:あかぶ:So-netブログ] | *[http://akab.blog.so-net.ne.jp/2012-07-17 BIND の エラー 「no current owner name」:あかぶ:So-netブログ] | ||
+ | ==named.confの設定== | ||
+ | オリジナル | ||
+ | <pre> | ||
+ | options { | ||
+ | listen-on port 53 { 127.0.0.1; }; | ||
+ | listen-on-v6 port 53 { ::1; }; | ||
+ | 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 { localhost; }; | ||
+ | recursion yes; | ||
+ | |||
+ | dnssec-enable yes; | ||
+ | dnssec-validation yes; | ||
+ | dnssec-lookaside auto; | ||
+ | |||
+ | /* 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 dynamic; | ||
+ | }; | ||
+ | }; | ||
+ | |||
+ | zone "." IN { | ||
+ | type hint; | ||
+ | file "named.ca"; | ||
+ | }; | ||
+ | |||
+ | include "/etc/named.rfc1912.zones"; | ||
+ | include "/etc/named.root.key"; | ||
+ | </pre> | ||
+ | |||
[[Category:bind]] | [[Category:bind]] | ||
[[Category:サーバ]] | [[Category:サーバ]] |
2014年8月27日 (水) 08:31時点における版
bindの起動
/etc/init.d/named start
named.confの設定
オリジナル
options { listen-on port 53 { 127.0.0.1; }; listen-on-v6 port 53 { ::1; }; 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 { localhost; }; recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside auto; /* 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 dynamic; }; }; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key";