bind でもdjbdnsでもないDNS NSDを使う@Serverman 備忘録


# yum install nsd
※ほかにもあったかもしれないけど忘れました。

/etc/nsd以下に
zoneファイルを用意してあげる。


$ORIGIN example.com.
$TTL 3600
@ IN SOA ns1.example.com. postmaster.example.com.(
2011072901 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
600 ; Minium
)
;


@ IN NS ns1.example.com.
IN NS ns2.example.com.
IN A 192.168.1.1
IN MX 10 mail.example.com.

/etc/nsd/nsd.confにzoneへの設定を追加

こんな感じ


zone:
name: "example.com"
zonefile: "example.com.zone"

NSDのデータベースをリビルド


# /etc/init.d/nsd rebuild
# /etc/init.d/nsd start (or restart)