doc/ja/man/man8/ndc.8
Jun Kuriyama 88a4de0fb8 Catch up to 3.0-19980827-SNAP and some fixes.
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1998-09-26 06:20:22 +00:00

143 lines
4 KiB
Groff

.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" jpman %Id: ndc.8,v 1.3 1997/09/07 14:10:53 horikawa Stab %
.Dd November 27, 1994
.Dt NDC 8
.Os BSD 4
.Sh 名称
.Nm ndc
.Nd ネームサーバデーモン制御インタフェース
.Sh 書式
.Nm ndc
.Ar directive
.Op Ar ...
.Sh 解説
このコマンドを使用する事により、ネームサーバの管理者はネームサーバに
各種シグナルを送ったり、ネームサーバをリスタートする事ができます。
以下のリストの 0 個以上の命令を指定する事ができます。
.Bl -tag -width "querylog"
.It Ic status
.Xr ps 1
で得られる
.Xr named 8
の現在の状態を表示します。
.It Ic dumpdb
.Ic named
のデータベースおよびキャッシュを
.Pa /var/tmp/named_dump.db
に出力します。
(
.Dv INT
シグナルを用います。)
.It Ic reload
.Ic named
の全てのプライマリおよびセカンダリゾーンのシリアル番号を調べ、
変更のあったものをリロードします。
(
.Dv HUP
シグナルを用います。)
.It Ic stats
.Ic named
の現在の統計的な状況を
.Pa /var/tmp/named.stats
に出力します。
(
.Dv IOT
ないし
.Dv ABRT
シグナルを用います。)
.It Ic trace
.Ic named
.Dq トレースレベル
を 1 だけ増加させます。トレースレベルが 0 以上の時、
トレース情報は
.Pa /var/tmp/named.run
に出力します。トレースレベルが高い程、詳細な情報が得られます。
(
.Dv USR1
シグナルを用います。)
.It Ic notrace
.Ic named
.Dq トレースレベル
を 0 にし、
.Pa /var/tmp/named.run
がオープンされていればクローズします。
(
.Dv USR2
シグナルを用います。)
.It Ic querylog
.Ic named
.Dq 問い合わせ記録
を、現在有効になっていれば無効へ、
現在無効になっていれば有効へ変更します。
(
.Dv WINCH
シグナルを用います。)
問い合わせ記録が有効になっている場合、
ネームサーバへの問い合わせ情報を
.Xr syslog 2
で記録します。
問い合わせ記録を有効にすると非常に多くの情報がログファイルに
記録されることに注意して下さい。この命令は
.Ic qrylog
と指定することも可能です。
.It Ic start
.Ic named
が実行中でなければ、実行を開始します。
.It Ic stop
.Ic named
が実行中であれば、停止します。
.It Ic restart
.Ic named
を停止させた後、再度実行します。
.El
.Sh バグ
.Ic named
への引数は、
.Ic restart
では保存されず、
.Ic start
では指定できません。
.Pp
パラメータや環境を制御する何らかの方法が必要でしょう。
.Pp
.Xr sh 1
スクリプトにより作成されています。
.Sh 作者
Paul Vixie (Internet Software Consortium)
.SH 関連項目
.Xr named 8 ,
.Xr named.reload 8 ,
.Xr named.restart 8 .