named.conf の 構文を 確認しよう
# which named-checkconf /usr/local/sbin/named-checkconf
では
# /usr/local/sbin/named-checkconf #
良いようです もし ファイルが 然るべき所に ない場合
$ /usr/local/sbin/named-checkconf none:0: open: /etc/named.conf: file not found
この様に なるでしょう
$ /usr/local/sbin/named-checkconf -v 9.3.1 $ /usr/local/sbin/named-checkconf -t /var/data/jail/ isc_dir_chroot: permission denied $ su - Password: # /usr/local/sbin/named-checkconf -t /var/data/jail/ none:0: open: /etc/named.conf: file not found # /usr/local/sbin/named-checkconf -t /var/data/jail/named/ #
結果が 良ければ 何の 反応もしません だんまりさんです。参考
$ man named-checkconf
man named-checkconf
NAMED-CHECKCONF(8) NAMED-CHECKCONF(8)
NAME
named-checkconf - named configuration file syntax checking
tool
SYNOPSIS
named-checkconf [ -v ] [ -t directory ] filename
DESCRIPTION
named-checkconf checks the syntax, but not the semantics,
of a named configuration file.
OPTIONS
-t directory
chroot to directory so that include directives in
the configuration file are processed as if run by a
similarly chrooted named.
-v Print the version of the named-checkconf program
and exit.
filename
The name of the configuration file to be checked.
If not specified, it defaults to /etc/named.conf.
RETURN VALUES
named-checkconf returns an exit status of 1 if errors were
detected and 0 otherwise.
SEE ALSO
named(8), BIND 9 Administrator Reference Manual.
AUTHOR
Internet Software Consortium
BIND9 June 14, 2000
にゃんたろう 拝!
2006年 4月13日 (木) 23:08:16 JST 作成