« 玄箱 DNSserver BIND(1) | Main | 玄箱 DDNS »

Jun 16, 2005

玄箱 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

|

« 玄箱 DNSserver BIND(1) | Main | 玄箱 DDNS »

玄箱」カテゴリの記事

Comments

Post a comment



(Not displayed with comment.)


Comments are moderated, and will not appear on this weblog until the author has approved them.



TrackBack


Listed below are links to weblogs that reference 玄箱 DNSserver BIND(2):

« 玄箱 DNSserver BIND(1) | Main | 玄箱 DDNS »