lost and found ( for me ? )

BIND10 develop ver.

# cat /etc/fedora-release
Fedora release 12 (Constantine)

# uname -r
2.6.31.12-174.2.3.fc12.i686.PAE

- python 3.1 を準備

python 3.1 以上が必要なので、python 3.1.2 をインストール。

# /usr/local/bin/python3.1 -V
Python 3.1.2


# tar xzvf bind10-devel-20100319.tar.gz

# cd bind10-devel-20100319

# ./configure --with-pythonpath=/usr/local/bin/python3.1
# make
# make install

- コンフィグファイル

# ls /usr/local/etc/bind10-devel/
bindctl.pem  cmdctl-accounts.csv  cmdctl-certfile.pem  cmdctl-keyfile.pem

- コンフィグがストアされるDB

# ls /usr/local/var/bind10-devel/
b10-config.db  zone.sqlite3

[root@localhost bind10-devel]# file b10-config.db
b10-config.db: ASCII text

[root@localhost bind10-devel]# file zone.sqlite3
zone.sqlite3: SQLite 3.x database


- bind10 起動

# bind10 -v
BIND 10 v20100310
Checking for already running msgq
Starting msgq using port 9912
Started msgq (PID 1306)
Starting b10-cfgmgr
Started b10-cfgmgr (PID 1307)
[XX] starting ccsession
[XX] handling new config:
{'version': 1}
[XX] ccsession started
Starting b10-auth using port 5300
Started b10-auth (PID 1308)
Starting b10-xfrin
Started b10-xfrin (PID 1309)
Starting b10-cmdctl on port 8080
Started b10-cmdctl (PID 1310)
My local name is:  4bb57fcd_6@localhost.localdomain
[AuthSrv] Data source database file: /usr/local/var/bind10-devel/zone.sqlite3
Server started.

複数プロセスが上がるみたい。

# ps aux | grep bind | grep -v grep | grep -v rpcbind
root     26900  0.1  2.1  12244  6556 pts/0    S+   15:10   0:00 /usr/local/bin/python3.1 /usr/local/sbin/bind10 --verbose
root     26901  0.1  2.1   9220  6476 pts/0    S+   15:10   0:00 /usr/local/bin/python3.1 /usr/local/libexec/bind10-devel/msgq
root     26902  0.1  1.8   8352  5624 pts/0    S+   15:10   0:00 /usr/local/bin/python3.1 /usr/local/libexec/bind10-devel/b10-cfgmgr
root     26904  0.0  2.0   9164  6448 pts/0    S+   15:10   0:00 /usr/local/bin/python3.1 /usr/local/libexec/bind10-devel/b10-xfrin
root     26905  0.1  2.7  13804  8568 pts/0    S+   15:10   0:00 /usr/local/bin/python3.1 /usr/local/libexec/bind10-devel/b10-cmdctl

develop版は 5300番ポートをリッスンする

# lsof -i:5300
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
b10-auth 1308 root    7u  IPv4   8429      0t0  UDP *:hacl-hb
b10-auth 1308 root    8u  IPv4   8430      0t0  TCP *:hacl-hb (LISTEN)
b10-auth 1308 root    9u  IPv6   8432      0t0  UDP *:hacl-hb
b10-auth 1308 root   10u  IPv6   8433      0t0  TCP *:hacl-hb (LISTEN)

httpsからもオペレーションできるみたい。

# lsof -i:8080
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
b10-cmdct 1310 root    3u  IPv4   8422      0t0  TCP localhost:webcache (LISTEN)

- ゾーンの読み込み

# cat example.com.zone
$TTL    3600
@       IN      SOA     aa.example.com. root.example.com. (
        2010040201
        3600
        900
        3600
        3600 )

        IN      NS      ns.example.com.
        IN      MX      10      mail1.example.com.
        IN      MX      10      mail2.example.com.
www     IN      A       192.168.10.1
mail1   IN      A       192.168.10.2
mail2   IN      A       192.168.10.3

# b10-loadzone -o exmple.com example.com.zone

NXDOMAINになるな。

# dig @127.1 -p 5300 example.com. soa +norec

; <<>> DiG 9.6.2rc1 <<>> @127.1 -p 5300 example.com. soa +norec
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 10529
;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;example.com.                   IN      SOA

;; AUTHORITY SECTION:
.                       3600    IN      SOA     aa.example.com. root.example.com. 2010040202


- bind-ctl ( bindctl - control and configure BIND 10 )

使い方がわからん。

# bindctl
["login success "] login as root
> help

usage: [param1 = value1 [, param2 = value2]]
Type Tab character to get the hint of module/command/parameters.
Type "help(? h)" for help on bindctl.
Type " help" for help on the specific module.
Type " help" for help on the specific command.

Available module names:
         help   Get help for bindctl
         config         Configuration commands
         Xfrin  same here
         Auth   same here
         Boss   same here
> Auth
>

BIND9から結構変更がありそうだ。

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.