- æ¥æï¼ 2007/03/15 10:39
- ååï¼ さばお
- はじめまして。DNSサーバを構築しているのですが、エラーが出てしまいます。皆さんの力を貸してください。よろしくお願いします。
現在の状況としては、 /etc/rc.d/init.d/named start で「OK」となります。
nslookupで、kanekane.comと打つと *** Can't find kanekane.com: No answer となります。 設定の詳細を以下に記述します。 /etc/named.conf
// // named.conf for Red Hat caching-nameserver //
options { directory "/var/named/"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; # pid-file "/var/run/chroot/var/run/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53 # version"Error" # allow-query{ # 127.0.0.1; # 128.160.0.0/16; # }; allow-recursion{ 127.0.0.1; 128.160.0.0/16; }; # allow-tranfer{ # 127.0.0.1; # 128.160.0.0/16; # }; forwarders { 128.160.11.1; };
};
#//query-source address * port 53; # ※自分で解決できないものは172.22.100.1に聞け #forwarders { 128.160.11.1; };
#forwarders{ # 128.160.11.1; # };
// // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; };
zone "." IN { type hint; file "named.ca"; };
zone "localdomain" IN { type master; file "localdomain.zone"; allow-update { none; }; };
zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; };
zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; };
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN { type master; file "named.ip6.local"; allow-update { none; }; };
zone "kanekane.com" IN { type master; file "kanekane.com.db"; allow-update { none; }; };
zone "160.128.in-addr.arpa" IN { type master; file "160.128.in-addr.arpa.db"; allow-update { none; }; };
include "/etc/rndc.key";
/var/named/kanekane.com.db $TTL 86400 @ IN SOA kanekane.com. root.kane.com. ( 2004092500 ; serial 3600 ; refresh 900 ; retry 604800 ; expire 86400 ; negative ) IN NS kanekane.com IN MX 10 kanekane.com @ IN A 128.160.100.12 router IN A 128.160.11.1 kanemura IN CNAME kanekane.com www IN CNAME kanekane.com
/var/named/160.128.in-addr.arpa.db $TTL 86400 @ IN SOA kanekane.com. root.kane.com.( 42 ; serial 3H ; refresh 15M ; retry 1W ; expire 1D ; negative ) IN NS kanekane.com. 12.100 IN PTR kanekane.com. 1.11 IN PTR router.kanekane.com.
/etc/resolv.conf search kanekane.com nameserver 128.160.100.12
よろしくお願いいたします。
|