2008.05.24
BIND 9.3.4 (DNSサーバ)・・・(FreeBSD)
FreeBSDの6.3で添付のbindが9.3.4になった。もちろん、7.0-RELEASEもbindは9.3.4だ。
大きな特徴は、named.confで外向きと内向きの記述を書き分けられるようになったことだ。外向きは必要ないので、内向きのみ作ったnamed.confと合わせて正逆zoneファイルの例を下記に示しておく。
1.named.conf
options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; dump-file "/var/dump/named_dump.db"; statistics-file "/var/stats/named.stats"; forwarders { 210.188.224.10; }; }; view "internal" { match-clients { 192.168.1.0/24; 127.0.0.0/8; }; recursion yes; zone "." { type hint; file "named.root"; }; zone "localhost" { type master; file "master/localhost.zone"; }; zone "0.0.127.IN-ADDR.ARPA" { type master; file "master/localhost.rev"; }; zone "fam.cx" { type master; file "slave/canal.zone"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" { type master; file "slave/canal.rev"; allow-update { none; }; }; };
2. localhost.zone
$TTL 86400 @ IN SOA uls.fam.cx. root.uls.fam.cx.( 2005071701 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS uls.fam.cx. localhost. IN A 127.0.0.1
3. localhost.rev
$TTL 86400 @ IN SOA uls.fam.cx. root.uls.fam.cx.( 2005071701 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS uls.fam.cx. 1 IN PTR localhost.
4. 正引きzone file(canal.zone)
$TTL 3600 ; 1 hour @ IN SOA uls.fam.cx. root.uls.fam.cx.( 2006121601 ; serial 10800 ; refresh (3 hours) 3600 ; retry (1 hour) 3600000 ; expire (5 weeks 6 days 16 hours) 3600 ; minimum (1 hour) ) IN NS uls.fam.cx. IN MX 10 uls.fam.cx. uls IN A 192.168.1.5 www IN CNAME uls ftp IN CNAME uls
5. 逆引きzone file(icanal.rev)
$TTL 3600 ; 1 hour @ IN SOA uls.fam.cx. root.uls.fm.cx.( 2006121602 ; serial 10800 ; refresh (3 hours) 900 ; retry (15 minutes) 3600000 ; expire (5 weeks 6 days 16 hours) 3600 ; minimum (1 hour) ) IN NS uls.fam.cx. 5 IN PTR uls.fam.cx.
コメント
コメントフィードを購読する
コメント投稿