OraRails

Oracle(9i,10g)+RubyOnRails(Ver1.2.1+Apache+mongrel)の設定メモ

bind9の設定

2007-01-31 10:40:54 | Xserver+apache
Virtualhostを組むために bind9の設定を触りました。

※bind9のサーバーはdebianです。

1) vi /etc/bind/local/aaaaa.zone 正引きの設定

2)赤字部分を追加

@ IN 86400 SOA aaaaa. bbbbb. (
2007011001 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN A sss.sss.sss.sss
@ IN NS ccccc.

dns IN MX 10 ddddd.
@ IN MX 10 ddddd..

dns IN A mmm.mmm.mmm.mmm
www IN A qqq.qqq.qqq.qqq
hostname1 IN A 192.168.240.ddd
hostname2 IN A 192.168.240.ccc
hostname3 IN A 192.168.101.aaa
hostname4 IN A 192.168.101.bbb

type1 IN A 192.168.ttt.rrr
type2 IN A 192.168.ttt.rrr
type3 IN A 192.168.ttt.rrr
type4 IN A 192.168.ttt.rrr
type5 IN A 192.168.ttt.rrr
type6 IN A 192.168.ttt.rrr



3) vi /etc/bind/local/bbbb.zone 逆引きの設定

4)赤字部分の追加
@ IN 86400 SOA aaaaa. bbbbb. (
2007013001 ; serial
2880 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS dns.mmm.mmm.mmm.

ff0 IN PTR aaa.aaa.aaa.aa.

fff IN PTR type1.example.jp.
fff IN PTR type2.example.jp.
fff IN PTR type3.example.jp.
fff IN PTR type4.example.jp.
fff IN PTR type5.example.jp.
fff IN PTR type6.example.jp.

ffa IN PTR current1.example.jp.
ffb IN PTR current2.example.jp.
ffc IN PTR current3.example.jp.
ffd IN PTR current4.example.jp.
ffe IN PTR current5.example.jp.
ffg IN PTR current6.example.jp.
ffh IN PTR current7.example.jp

192.168.ttt.rrrのサーバーに6本の別ドメインサーバーの設定をしました。
( type1,type2,type3,type4,type5,type6 .example.jp )

最新の画像もっと見る