BINDの役割・zoneと照会2 / 4

Forward zone

example.test.zoneの例である。

$ORIGIN example.test.
$TTL 300
@ IN SOA ns1.example.test. hostmaster.example.test. (
  2026101701 3600 600 604800 300 )
@    IN NS    ns1.example.test.
@    IN MX 10 mail.example.test.
ns1  IN A     192.0.2.53
mail IN A     192.0.2.25
app  IN A     192.0.2.10
app  IN AAAA  2001:db8::10
www  IN CNAME app.example.test.

SOAのprimary、連絡先、serial、refresh、retry、expire、negative cacheへ関わる値を読む。hostmaster.example.test.は通常hostmaster@example.testに相当する表記である。$TTLは既定TTL、末尾のdotは絶対名、@は現在originを表す。末尾dotを落とした相対名にはoriginが補われる。

A/AAAAはaddress、MXの小さいpreferenceは優先、CNAMEは別名で、同じownerへ通常他のdataを混在させない。MXの接続先はhost名で指定する。

学習パスへ
参考資料