[root@fedora root]# vi /etc/named.conf // generated by named-bootconf.pl
options { directory "/var/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; allow-query{ 127.0.0.1; 192.168.1.0/24; }; allow-transfer{ 127.0.0.1; 192.168.1.0/24; }; forwarders{ xxx.xxx.xxx.xxx; xxx.xxx.xxx.xxx; // ここにはルーターに設定したIPを記入 }; };
// // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; };
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; }; };
include "/etc/rndc.key"; zone "xxxxxxx.tk.to" IN { type master; file "xxxxxxx.tk.to.db"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master; file "1.168.192.in-addr.arpa.db"; allow-update { none; }; };
としました。
正引きゾーンデータベース(kaju.homeip.net.db)の作成 [root@fedora root]# vi /var/named/kaju.homeip.net.db $TTL 86400 @ IN SOA xxxxxxx.tk.to. root.xxxxxxx.tk.to.( 2004092500 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS linux.xxxxxx.tk.to. IN MX 10 linux fedora IN A 192.168.1.2 client IN A 192.168.1.20 www IN CNAME linux
[root@fedora root]# vi /var/named/1.168.192.in-addr.arpa.db $TTL 86400 @ IN SOA linux.xxxxxx.tk.to. root.xxxxxx.tk.to.( 2004092500 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS linux.xxxxxx.tk.to. 5 IN PTR linux.xxxxxx.tk.to. 10 IN PTR client.xxxxxx.tk.to.
そこでFD2から# nslookupをしても 正・逆とも;;connection timed out; no servercould be reached となってしまいます。
対処法がわかりますでしょうか? 尚xxxxxxxxの部分には別名が入ります
■ コンテンツ関連情報
Re: DNSサーバーについて ( No.1 )
????????? 2005/08/03 10:26
????????? とくっち
上記の修正です。
正引きゾーンデータベース(xxxxxxx.tk.to.db)の作成 [root@fedora root]# vi /var/named/xxxxxxx.tk.to.db
です^^;
Re: DNSサーバーについて ( No.2 )
????????? 2005/08/03 10:50
????????? 管理者
まず、以下の点を確認してみて下さい。
?BINDサーバについて FQDN名を教えてください。 設定を変更した際、サービスを再起動したか?
?正引きゾーンのファイル名について 作成するファイル名は「/etc/named.conf」で指定している以下の部分 zone "xxxxxxx.tk.to" IN { type master; file "xxxxxxx.tk.to.db"; allow-update { none; }; }; 『file "xxxxxxx.tk.to.db";』で、「xxxxxxx.tk.to.db」になります。
?正引きゾーンについて(例:BINDサーバのホスト名が「linux.xxxxxx.tk.to」の場合) IN NS linux.xxxxxx.tk.to. IN MX 10 linux linux IN A 192.168.1.2 client1 IN A 192.168.1.20 client2 IN A 192.168.1.21 printer1 IN A 192.168.1.100 printer2 IN A 192.168.1.101 www IN CNAME linux
?逆引きゾーンについて(例:BINDサーバのホスト名が「linux.xxxxxx.tk.to」の場合) IN NS linux.xxxxxx.tk.to. 2 IN PTR linux.xxxxxx.tk.to. 20 IN PTR client1.xxxxxx.tk.to. 21 IN PTR client2.xxxxxx.tk.to. 100 IN PTR printer1.xxxxxx.tk.to. 101 IN PTR printer1.xxxxxx.tk.to.
?正引き・逆引きゾーンのシリアルについて BINDサーバに設定が明確に変わった事を通知するため、各ゾーンのSOAレコード 2004092500 ; Serial ↑ この部分の値をインクリメントして下さい。2005080300、変更したら2005080301の様に・・・
投稿内容は以下の様に書かれているので、問題ありません。 zone "1.168.192.in-addr.arpa" IN { type master; file "1.168.192.in-addr.arpa.db"; allow-update { none; }; }; [root@fedora root]# vi /var/named/1.168.192.in-addr.arpa.db
BINDサーバのFQDNが「www.xxxxxx.tk.to」ですので 【正引きゾーン】 IN NS www.xxxxxx.tk.to. ← 修正 IN MX 10 www ← メールサーバを立てていた場合 www IN A 192.168.1.2 ← 修正 client1 IN A 192.168.1.20 client2 IN A 192.168.1.21 printer1 IN A 192.168.1.100 printer2 IN A 192.168.1.101 www IN CNAME linux ← 削除
【逆引きゾーン】 IN NS www.xxxxxx.tk.to. ← 修正 2 IN PTR www.xxxxxx.tk.to. ← 修正 20 IN PTR client1.xxxxxx.tk.to. 21 IN PTR client2.xxxxxx.tk.to. 100 IN PTR printer1.xxxxxx.tk.to. 101 IN PTR printer2.xxxxxx.tk.to.
chrootについて教えてください。 FD2の場合 # vi /var/named/chroot/etc/named.conf # vi /var/named/chroot/var/named/xxxxxx.db # vi /var/named/chroot/etc/named/1.186.192.in-addr.arpa.db