named の 起動と確認

前へ

/etc/rc.d/rc.inet2 最終の形

では 今回の最終の 形を見ておこう /etc/rc.d/rc.inet2 の bind (named) 起動の 部分を 見てみると

# cd /etc/rc.d/
.....
# bind
#BINDDIR=/var/named
#NCPU=`grep '^processor' /proc/cpuinfo | wc -l`
#SERV="$SERV named:-c:$BINDDIR/named.conf:-t:$BINDDIR:-u:named:-n:$NCPU"
# Fri Sep 14 23:24:13 JST 2007 ADD ONE LINE
/usr/local/sbin/named -c /etc/named.conf -t /var/data/jail/named -u named -n 1
.....

のようになります。

/usr/local/sbin/named -c /etc/named.conf -t /var/data/jail/named -u named -n 1
      ^                        ^                  ^
      |                        |                  |
# which named                  |                  |
/usr/local/sbin/named          |                  |
                               |                  |
                         # pwd                    |
                         /var/data/jail/named     |
                         # ls etc/named.conf      |
                         etc/named.conf           |
                                                # pwd
                                                /var/data/jail/named
                                                # ls
                                                dev/  etc/  var/

起動したら その log を 見ておきましょう

/var/log/messages

それでは

# cat messages | grep named
Sep 14 23:25:00 sv named[170]: \
starting BIND 9.4.1-P1 -c /etc/named.conf -t /var/data/jail/named -u named -n 1
Sep 14 23:25:00 sv named[170]: loading configuration from '/etc/named.conf'
Sep 14 23:25:00 sv named[170]: no IPv6 interfaces found
Sep 14 23:25:00 sv named[170]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 14 23:25:00 sv named[170]: listening on IPv4 interface eth0, 192.168.0.9#53
Sep 14 23:25:00 sv named[170]: automatic empty zone: 127.IN-ADDR.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: 254.169.IN-ADDR.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: \
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone:\
 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: D.F.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: 8.E.F.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: 9.E.F.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: A.E.F.IP6.ARPA
Sep 14 23:25:00 sv named[170]: automatic empty zone: B.E.F.IP6.ARPA
Sep 14 23:25:00 sv named[170]: command channel listening on 127.0.0.1#953
Sep 14 23:25:00 sv named[170]: zone 0.0.127.in-addr.arpa/IN: loaded serial 20030121
Sep 14 23:25:00 sv named[170]: zone 0.168.192.in-addr.arpa/IN: loaded serial 20030121
Sep 14 23:25:00 sv named[170]: zone bcnet.ne.jp/IN: loaded serial 20030121
Sep 14 23:25:00 sv named[170]: zone localhost/IN: loaded serial 2006041400
Sep 14 23:25:00 sv named[170]: running

”ps aux”でも確認しておきましょう

# ps aux | grep named
named      170  0.0  2.6  7256 5132 ?        S    23:25  \
 0:00 /usr/local/sbin/named -c /etc/named.conf -t /var/data/jail/named -u named -n 1

あとは ”dig”にて 確認すれば 良いでしょう

# dig @192.168.0.8 nyanta.no-ip.info

; <<>> DiG 9.4.1-P1 <<>> @192.168.0.8 nyanta.no-ip.info
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42835
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3

;; QUESTION SECTION:
;nyanta.no-ip.info.             IN      A

;; ANSWER SECTION:
nyanta.no-ip.info.      60      IN      A       218.41.236.104

;; AUTHORITY SECTION:
no-ip.info.             65578   IN      NS      nf3.no-ip.com.
no-ip.info.             65578   IN      NS      nf2.no-ip.com.
no-ip.info.             65578   IN      NS      nf1.no-ip.com.

;; ADDITIONAL SECTION:
nf1.no-ip.com.          151914  IN      A       204.16.252.8
nf2.no-ip.com.          151914  IN      A       216.66.37.12
nf3.no-ip.com.          151914  IN      A       70.86.196.66

;; Query time: 242 msec
;; SERVER: 192.168.0.8#53(192.168.0.8)
;; WHEN: Fri Sep 14 22:18:12 2007
;; MSG SIZE  rcvd: 162
# dig @sv.bcnet.ne.jp nyanta.no-ip.info

; <<>> DiG 9.4.1-P1 <<>> @sv.bcnet.ne.jp nyanta.no-ip.info
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 921
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;nyanta.no-ip.info.             IN      A

;; ANSWER SECTION:
nyanta.no-ip.info.      60      IN      A       218.41.236.104

;; Query time: 10 msec
;; SERVER: 192.168.0.9#53(192.168.0.9)
;; WHEN: Fri Sep 14 22:18:32 2007
;; MSG SIZE  rcvd: 51
# dig @192.168.0.9 -x 218.41.236.104
........

はい 取り敢えずは 此処まで ということで

にゃんたろう 拝!

2007年 9月14日 (金) 22:51:08 JST 作成


前へ

named の 起動と確認

Copyright © 2007. nyantarou All Rights Reserved.