FreeBSD4にはデフォルトでBINDが入っているのでちょこっと動かしてみた。
# vi /etc/rc.conf
下記追加
#
# named. It may be possible to run named in a sandbox, man security for
# details.
#
named_enable="YES" # Run named, the DNS server (or NO).
named_program="/usr/sbin/named" # path to named, if you want a different one.
named_flags="-u bind -g bind" # Flags for named
localhost.revとかの作成。
# /etc/namedb/make-localhost
# named.restart
# ps -auxw | grep named
root 41432 0.0 1.0 1088 604 p0 S+ 9:46PM 0:00.01 grep named
bind 41397 0.0 1.5 2124 904 ?? Is 9:36PM 0:00.05 /usr/sbin/named -u bind -g bind
確認。
# tail /var/log/messages
May 11 21:36:08 home named[41396]: starting (/etc/namedb/named.conf). named 8.3.3-REL Wed Aug 14 18:57:01 GMT 2002 murray@builder.free
bsdmall.com:/usr/obj/usr/src/usr.sbin/named
May 11 21:36:08 home named[41397]: Ready to answer queries.
May 11 21:36:24 home named[41397]: check_hints: A records for J.ROOT-SERVERS.NET class 1 do not match hint records
May 11 21:36:24 home named[41397]: check_hints: A records for B.ROOT-SERVERS.NET class 1 do not match hint records
※BとJのルートサーバのIPアドレスが変わってる、らしい。・・・・けどどうでもいいや(爆)
# nslookup
Default Server: localhost.teachat.org
Address: 127.0.0.1
単なる受け売りなので少しは調べねば・・・・でもDNSって別に好きじゃないしー(´・ω・`)ショボーン