

| /var/named/localhost.rev /var/named/localhost.zone /var/named/jinjin.com.zone /var/named/jinjin.com.rev /var/named/named.root /etc/named.conf |
| ; localhost. $TTL 3600 @ in soa localhost. postmaster.localhost. ( 2001091801 ;serial 3600 ;refresh 1800 ;retry 604800 ;expiration 3600 ) ;minimum ; in ns localhost. in a 127.0.0.1 |
| ; 0.0.127.in-addr.arpa $TTL 3600 @ in soa localhost. postmaster.localhost. ( 2001091701 ;serial 3600 ;refresh 1800 ;retry 604800 ;expiration 3600 ) ;minimum in ns localhost. 1 in ptr localhost. |
| ; jinjin.com. $TTL 3600 @ in soa home3.jinjin.com. postmaster.jinjin.com. ( 2001091701 ;serial 3600 ;refresh 1800 ;retry 604800 ;expiration 3600 ) ;minimum ; in ns home3.jinjin.com. in ns ns-os001.ocn.ad.jp. home in a 192.168.128.11 home2 in a 192.168.128.12 home3 in a 192.168.128.13 home4 in a 192.168.128.14 home5 in a 192.168.128.15 jinjin.com. in mx 10 home3.jinjin.com. www in cname home3.jinjin.com. ftp in cname home3.jinjin.com. |
| ; 128.168.192.in-addr.arpa $TTL 3600 @ in soa home3.jinjin.com. postmaster.jinjin.com. ( 2000040101 ;serial 3600 ;refresh 1800 ;retry 604800 ;expiration 3600 ) ;minimum ; in ns home3.jinjin.com. in ns ns-os001.ocn.ad.jp. 11 in ptr home.jinjin.com. 12 in ptr home2.jinjin.com. 13 in ptr home3.jinjin.com. 14 in ptr home4.jinjin.com. 15 in ptr home5.jinjin.com. |
| You must use the keyboard to create entropy,
since your system is lacking /dev/random (or equivalent) start typing: ............................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... stop typing. |
| key "rndc-key" { algorithm hmac-md5; secret "7HTym7dBZ77QsFX5Zkelmw=="; }; |
| acl ipasec { 192.168.128.0/24; 127.0.0.1; }; acl blacklist{ 172.16.2.0/24; 192.168.128.30; }; options { directory "/var/named"; pid-file "/var/named/named.pid"; query-source address * port 53; allow-transfer { ipasec; }; allow-query { ipsec; }; allow-recursion { ipasec; }; blackhole { blacklist; }; auth-nxdomain yes; #auth-nxdomain' option is now 'no'というエラーが出るときなどは明示的にyesにしてあげます。 version ""; #バージョン情報を出さないようにする。 }; zone "." { type hint; file "named.root"; }; zone "localhost" { type master; file "localhost.zone"; }; zone "0.0.127.in-addr.arpa" { type master; file "localhost.rev"; }; zone "jinjin.com" { ;もしこのゾーンの情報を外部にも公開したいのであれば ;allow-query { any; };をつけるとこのzone部分だけどこからでも参照できるようになります。 type master; file "jinjin.com.zone"; }; zone "128.168.192.in-addr.arpa" { type master; file "jinjin.com.rev"; }; logging{ channel config_debug{ file "/var/named/log/config_debug.log" versions 5 size 10m; severity debug 3; print-category yes; print-severity yes; print-time yes; }; channel xfer-in_debug{ file "/var/named/log/xfer-in_debug.log" versions 5 size 10m; severity debug 3; print-category yes; print-severity yes; print-time yes; }; channel xfer-out_debug{ file "/var/named/log/xfer-out_debug.log" versions 5 size 10m; severity debug 3; print-category yes; print-severity yes; print-time yes; }; channel notify_debug{ file "/var/named/log/notify_debug.log" versions 5 size 10m; severity debug 3; print-category yes; print-severity yes; print-time yes; }; channel security_debug{ file "/var/named/log/security_debug.log" versions 5 size 10m; severity debug 3; print-category yes; print-severity yes; print-time yes; }; category config { config_debug; }; category xfer-in { xfer-in_debug; }; category xfer-out { xfer-out_debug; }; category notify { notify_debug; }; category security { security_debug; }; }; |
| domain jinjin.com nameserver 192.168.128.4 nameserver 203.139.161.37 |
| hosts: dns files |
| 77if [ -f /usr/sbin/in.named -a -f /etc/named.conf
]; then 78 echo 'starting internet domain name server.' 79 /usr/sbin/in.named & 80fi |
| 77if [ -f /usr/local/sbin/named -a -f /etc/named.conf
]; then 78 echo 'starting internet domain name server.' 79 /usr/local/sbin/named -u bind & 80fi |
| . /etc/rc.d/init.d/functions . /etc/sysconfig/network [ "${NETWORKING}" = "no" ] && exit 0 [ -f /etc/sysconfig/named ] && . /etc/sysconfig/named [ -f /usr/local/sbin/named ] || exit 0 [ -f /etc/named.conf ] || exit 0 RETVAL=0 prog="named" start() { # Start daemons. echo -n $"Starting $prog: " if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then OPTIONS="${OPTIONS} -t ${ROOTDIR}" fi daemon named -u bind ${OPTIONS} RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named echo return $RETVAL } stop() { # Stop daemons. echo -n $"Stopping $prog: " killproc named RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named echo return $RETVAL } rhstatus() { /usr/local/sbin/rndc status return $? } restart() { stop start } reload() { /usr/local/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/killall -HUP named return $? } probe() { # named knows how to reload intelligently; we don't want linuxconf # to offer to restart every time /usr/local/sbin/rndc reload >/dev/null 2>&1 || echo start return $? } case "$1" in start) start ;; stop) stop ;; status) rhstatus ;; restart) restart ;; condrestart) [ -f /var/lock/subsys/named ] && restart ;; reload) reload ;; probe) probe ;; *) echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|probe}" exit 1 esac exit $? |
| You must use the keyboard to create entropy,
since your system is lacking /dev/random (or equivalent) start typing: ............................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... ........................... stop typing. Khome3.+157+41729 |
| -rw------- 1 root other 114 Jan 20 15:05
Khome3.+157+41729.key -rw------- 1 root other 145 Jan 20 15:05 Khome3.+157+41729.private |
| options { default-server localhost; default-key "home3"; #dnssec-keygenの際にHOSTで指定した名前 }; server 127.0.0.1{ key "home3"; #dnssec-keygenの際にHOSTで指定した名前 }; key "home3" { #dnssec-keygenの際にHOSTで指定した名前 algorithm hmac-md5; secret "B4zVQWMZKcTEYp8kOKhvL5wr2sd8fCeSeBYldNYmeup9hNLnqSRsGoFQ 1iau7wjLr6Z0LeK/DPCoGK/1GCEmKw=="; ※改行はなしでdnssec-keygenで作ったファイルの中のkeyをコピーしてくる }; |
| key "home3" { algorithm hmac-md5; secret "B4zVQWMZKcTEYp8kOKhvL5wr2sd8fCeSeBYldNYmeup9hNLnqSRsGoFQ1iau7wjL 6Z0LeK/DPCoGK/1GCEmKw=="; ※改行はなしでdnssec-keygenで作ったファイルの中のkeyを }; controls { inet 127.0.0.1 allow { 127.0.0.1; } keys { "home3"; }; }; |
| number of zones: 5 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF server is up and running |
| /usr/local/sbin/rndc: illegal option -- h Usage: rndc [-c config] [-s server] [-p port] [-y key] [-V] command コマンドの使い方: reload 設定ファイルとゾーンファイルを再読み込みします。 reload zone [class [view]] 指定したゾーンを再読み込みします。 refresh zone [class [view]] ゾーンのリフレッシュを今すぐします。 reconfig 設定ファイルと新しいゾーンのみ読み込みなおします。 stats サーバの状態をファイルに書き出します。 querylog クエリーのロギングをONにします。 dumpdb named_dump.dbのようなファイルにキャッシュをダンプします。 stop マスターファイルへの更新を保存し、サーバを停止します。 halt 更新途中であっても強制的にサーバを停止します。 trace デバッグレベルをひとつ上に上げます。 trace level デバッグレベルを変更します。 notrace デバッグレベルを0にします。 flush サーバのすべてのキャッシュをフラッシュします。 flush [view] サーバのviewキャッシュをフラッシュします。 status サーバの状態を表示します。 *restart サーバの再起動。 * == まだ使えません。 Version: 9.3.0rc1 |
| bind9インストール(2001.11.23) |