注意 dig の 項目は 抜粋 してあります
現在の状況を 纏めると
# ls -l /etc/rndc.* -r-------- 1 root root 150 Apr 4 21:12 /etc/rndc.conf -r-------- 1 root root 336 Apr 4 18:38 /etc/rndc.key # ls -l /etc/named.conf -r-------- 1 root root 2178 Apr 4 18:49 /etc/named.conf
まず
# sed -e '/^#/d' /etc/rndc.conf
options {
default-key "rndc.key";
default-server 127.0.0.1;
default-port 953;
};
include "/etc/rndc.key";
そうして
# sed -e '/^#/d' /etc/rndc.key
key "rndc.key" {
algorithm hmac-md5;
secret "bjEX98NCIUgWCqvC1WaxJzdGZReAyLO8KDRSpW6Ky5cr9Cq+C7l0j8eQCFkDg4PzNrhIOf090gA23LsWyJrpiQ==";
};
ほんで もって
# sed -e '/^#/d' /etc/named.conf | sed -e '/^\//d'
acl bcnet.ne.jp {
192.168.0.0/24;
127.0.0.1;
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
recursion yes;
allow-query {
127.0.0.1;
192.168.0.0/24;
};
allow-transfer { none; };
forwarders {
127.0.0.1;
192.168.0.1;
};
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc.key"; };
};
zone "." {
type hint;
file "root.hints";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
};
zone "bcnet.ne.jp" {
type master;
file "bcnet.hosts";
};
zone "0.168.192.in-addr.arpa" {
type master;
file "bcnet.hosts.rev";
};
include "/etc/rndc.key";
良いか悪いかは 別として これで 動いている
これが 最終の 形では 有りません あくまで参考です。
にゃんたろう 拝!
2006年 4月 4日 (火) 23:03:24 JST 作成