玄箱 DNSserver BIND(2)
各種zoneファイルの設定です。
--"."zone ディフォルトのファイルをそのまま使用
/etc/bind/db.root
--reverse local zone
# vi /etc/bind/db.local
-----
$TTL 604800
@ IN SOA hoge.hogehoge.net. root.hogehoge.net (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS hoge.hogehoge.net.
@ IN A 127.0.0.1
1 IN PTR localhost.
-----
--local LAN zone
# vi /etc/bind/naonao.zone
-----
$TTL 86400
@ IN SOA hoge.hogehoge.net. root.hogehoge.net. (
2004080101 ;serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ;minimum
)
IN NS kuro-chan.naonao.net. ;primry
IN A 192.168.0.10 ;Linux
www IN A 192.168.0.10 ;Linux
gw IN A 192.168.0.1 ;Gateway
pc1 IN A 192.168.0.3 ;PC
pc2 IN A 192.168.0.4 ;PC
pc3 IN A 192.168.0.5 ;PC
linux IN A 192.168.0.10 ;Linux
kuro-chan IN A 192.168.0.200 ;kuro-box
-----
--reverse local LAN zone
# vi /etc/bind/named.0.168.192.in-addr.arpa
-----
$TTL 86400
@ IN SOA hoge.hogehoge.net. root.hogehoge.net. (
2004080101 ;serial
28800 ;refresh
7200 ;retry
604800 ;expire
86400 ;minimum
)
IN NS kuro-chan.hogehoge.net. ;Primary
1 IN PTR gw.hogehoge.net ;Gateway
230 IN PTR air.hogehoge.net ;Airstation
3 IN PTR pc1.hogehoge.net ;PC
4 IN PTR pc2.hogehge.net ;PC
5 IN PTR pc3.hogehoge.net ;PC
10 IN PTR linux.hogehoge.net ;Linux
200 IN PTR kuro-chan.hogehoge.net ;Kuro-Box
--bind 再起動
# /etc/init.d/bind9 restart
「玄箱」カテゴリの記事
- 新型NASキット KURO-Z/NAS-KIT(2010.05.20)
- 小型LinuxBox開発キット KURO-SHEEVA(玄柴)(2009.12.05)
- 玄箱 まとめサイト(2009.08.25)
- 新型玄箱 KURO-BOX/T4(2009.08.24)
- HDDを4台搭載できるNASキット KURO-NAS/X4(2008.11.28)
The comments to this entry are closed.
Comments