UBUNTU14.04でサーバを立てています。DNSサーバに来てつまづきました。 エラーが出るのです。 # /etc/init.d/bind9 restart * Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused [ OK ] * Starting domain name service... bind9 [fail] と言うエラーが出ます。 named.confは、 1 // This is the primary configuration file for the BIND DNS server named.$ 2 //$ 3 // Please read /usr/share/doc/bind9/README.Debian.gz for information on the $ 4 // structure of BIND configuration files in Debian, *BEFORE* you customize $ 5 // this configuration file.$ 6 //$ 7 // If you are just adding zones, please do that in /etc/bind/named.conf.local$ 8 $ 9 include "/etc/bind/named.conf.options";$ 10 include "/etc/bind/named.conf.local";$ 11 #include "/etc/bind/named.conf.default-zones";$ 12 include "/etc/bind/named.conf.internal-zones";$ 13 include "/etc/bind/named.conf.external-zones";$ と記述しました。 named.conf.localは、 1 //$ 2 // Do any local configuration here$ 3 //$ 4 $ 5 // Consider adding the 1918 zones here, if they are not used in your$ 6 // organization$ 7 //include "/etc/bind/zones.rfc1918";$ 8 $ となっています。 named.conf.optionsは、 directory "/var/cache/bind"; // If there is a firewall between you and nameservers you want // to talk to, you may need to fix the firewall to allow multiple // ports to talk. See http://www.kb.cert.org/vuls/id/800113 // If your ISP provided one or more IP addresses for stable // nameservers, you probably want to use them as forwarders. // Uncomment the following block, and insert the addresses replacing // the all-0's placeholder. forwarders { xxx.yyy.zzz.115; xxx.yyy.zzz.2; }; allow-query{localhost;192.168.1.0/24;}; allow-trasfer{localhost;192.168.1.0/24;}; allow-recursion{localhost;192.168.1.0/24;}; //======================================================================== // If BIND logs error messages about the root key being expired, // you will need to update your keys. See https://www.isc.org/bind-keys //======================================================================== dnssec-validation auto; auth-nxdomain no; # conform to RFC1035 listen-on-v6 {none; }; }; としました。 named.conf.internal-zonesは、 view "internal" { match-clients { localhost; 192.168.1.0/24; }; zone "abcd.com" { type master; file "/etc/bind/abcd.com.lan"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" { type master; file "/etc/bind/1.168.192.db"; allow-update { none; }; }; include "/etc/bind/named.conf.default-zones"; }; named.conf.external-zonesは、 view "external" { match-clients { any; }; allow-query { any; }; recursion no; zone "abcd.com" { type master; file "/etc/bind/abcd.com.wan"; allow-update { none; }; }; zone "ddd.eee.fff.ggg.in-addr.arpa" { type master; file "/etc/bind/ddd.eee.fff.ggg.db"; allow-update { none; }; }; }; です。 調べて行くと、"rndc"キーと言うものが、設定されなければならないと言うことは 判りました。そこで、関連していそうな箇所を見ると、named.conf.localにあります。 しかし、コメントになっているようです。これが関係しているのだろうか?と思うのですが、これから、BINDに関しては勉強するつもりですが、とりあえずDNSサーバーを動かしたい ので、ご教示いただければと思います。 サイトもいろいろなところを見ましたが、同じものが一つとしてなくて混乱しています。 なお、参考にしたサイトは。 http://www.server-world.info/query?os=Ubuntu_14.04&p=dns&f=1 です。よろしくお願いします。
↧