[問題]Bind 9.3.1 啟動的問題
系統是 FreeBSD 5.4-RELEASE-p6
使用的是內建的 Bind9.3.1
以下是設定檔的內容和測試過程
1. rc.conf
named_enable="YES"
named_program="/usr/sbin/named"
named_flags="-u bind -c /etc/namedb/named.conf"
2. named.conf
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
allow-transfer {
219.81.182.89;
};
forwarders {
127.0.0.1;
140.126.1.1;
140.126.3.9;
};
query-source address * port 53;
};
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "master/localhost.rev";
};
zone "aerial.twbbs.org" {
type master;
file "master/aerial.fwd";
};
zone "kfking.com" {
type slave;
file "slave/kfking.fwd";
masters {
219.81.182.89;
};
};
PS. 我目前沒有設反解,IPv6 的部份也拿掉了
3. 目前狀況
每當重新開機named 都無法成功開啟,需要手動重新啟動,才能正常使用。測試方法如下
。
3.1 reboot 重新開機
3.2 reboot 重開機後執行以下指令
3.2.1
ps -aux | grep named
root 285 0.0 0.1 1324 892 ?? Rs 7:07上午 0:00.01 /usr/sbin/syslogd -l
/var/run/log -l /var/named/var/run/log -s
bind 300 0.0 0.4 5468 4348 ?? Ss 7:07上午 0:00.06 /usr/sbin/named -u bind -c
/etc/namedb/named.conf -t /var/named
3.2.2
tail -20 /var/log/messages
Aug 5 07:24:30 aerial named[300]: starting BIND 9.3.1 -u bind -c
/etc/namedb/named.conf -t /var/named
Aug 5 07:24:30 aerial named[300]: command channel listening on 127.0.0.1#953
Aug 5 07:24:30 aerial named[300]: running
3.2.3
sockstat
bind named 300 3 dgram -> /var/run/logpriv
bind named 300 20 udp4 127.0.0.1:53 *:*
bind named 300 21 tcp4 127.0.0.1:53 *:*
bind named 300 22 udp4 *:53 *:*
bind named 300 23 tcp4 127.0.0.1:953 *:*
3.2.4
在我自己的電腦裡
C:\Documents and Settings\ziway>nslookup proxy.aerial.twbbs.org
Server: dns.seed.net.tw
Address: 139.175.55.244
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to dns.seed.net.tw timed-out
C:\Documents and Settings\ziway>
3.3 重新啟動named
/etc/rc.d/named stop
/etc/rc.d/named start
3.3.1
ps -aux | grep named
root 285 0.0 0.1 1324 892 ?? Rs 7:24上午 0:00.01 /usr/sbin/syslogd -l
/var/run/log -l /var/named/var/run/log -s
bind 568 0.0 0.4 5352 4304 ?? Is 7:35上午 0:00.03 /usr/sbin/named -u bind -c
/etc/namedb/named.conf -t /var/named
3.3.2
tail -20 /var/log/messages
Aug 5 07:35:42 aerial named[568]: starting BIND 9.3.1 -u bind -c
/etc/namedb/named.conf -t /var/named
Aug 5 07:35:42 aerial named[568]: command channel listening on 127.0.0.1#953
Aug 5 07:35:42 aerial named[568]: running
3.3.3
sockstat
bind named 568 3 dgram -> /var/run/logpriv
bind named 568 20 udp4 140.126.12.204:53 *:*
bind named 568 21 tcp4 140.126.12.204:53 *:*
bind named 568 22 udp4 127.0.0.1:53 *:*
bind named 568 23 tcp4 127.0.0.1:53 *:*
bind named 568 24 udp4 *:53 *:*
bind named 568 25 tcp4 127.0.0.1:953 *:*
3.3.4
在我自己電腦裡
C:\Documents and Settings\ziway>nslookup proxy.aerial.twbbs.org
Server: dns.seed.net.tw
Address: 139.175.55.244
Non-authoritative answer:
Name: proxy.aerial.twbbs.org
Address: 140.126.12.204
C:\Documents and Settings\ziway>
以上是我的測試方式和狀況
請前輩們指導
感謝
--
※Origin:星 情 小 築 < Star.leobbs.net >
※From: 59-105-114-116.adsl.dynamic.seed.net.tw
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章