- インストール
- 正引きの設定 named.conf.local
- 逆引きの設定 named.conf.local
- セカンダリDNS設定 セカンダリDNSの設定は以下のようにする これでプライマリからゾーン転送されてくる
- その他Tips フォワーダ設定
apt-get install bind9
zone "test" {db.test
type master;
file "/etc/bind/db.test";
};
$TTL 1D
@ IN SOA dns.test. root.hoge. (
20120505 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns.test.
main IN A 192.168.0.2
vista IN A 192.168.0.3
dns IN A 192.168.0.4
note IN CNAME dns.test.
jitaku IN A 192.168.0.11
zone "0.168.192.in-addr.arpa" {db.testrev
type master;
file "/etc/bind/db.testrev";
};
$TTL 1D
@ IN SOA dns.test. root.hoge. (
20120505 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS dns.test.
;
2 IN PTR main.test.
3 IN PTR vista.test.
4 IN PTR note.test.
11 IN PTR jitaku.test.
named.conf.localゾーン転送(完全転送:AXFR)をエミュレートするには
zone "hoge.jp" {
type slave;
file "/tmp/db.hoge";
masters { 123.123.123.123; };
};
nslookupdigでも出来る
server ns.example.co.jp
ls example.co.jp
dig @ns.example.co.jp example.co.jp axfrhttp://www.atmarkit.co.jp/fsecurity/rensai/iprotect01/iprotect01.html
named.conf.options
forwarders {chacheファイルの在り処
210.130.1.1;
210.130.0.1;
8.8.8.8;
8.8.4.4;
};
/var/cache/bind/named_dump.dbchacheのクリア
rndc flush時間は秒数以外も指定できる
W 週http://kajuhome.com/tips/tips_04_002.shtml
D 日
H 時間
M 分