どうやら失敗した らしい/etc/init.d/bind9 reload
Reloading bind9 configuration (via systemctl): bind9.serviceJob for bind9.service failed. See 'systemctl status bind9.service' and 'journalctl -xn' for details.
failed!
どうやら行表示が省略されて ... に されて しまっている● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled)
Drop-In: /run/systemd/generator/bind9.service.d
mq50-insserv.conf-$named.conf
Active: active (running) (Result: exit-code) since 金 2015-06-05 07:26:13 JST; 1 weeks 0 days ago
Docs: man:named(8)
Process: 1111 ExecReload=/usr/sbin/rndc reload (code=exited, status=1/FAILURE)
Main PID: 440 (named)
CGroup: /system.slice/bind9.service
mq440 /usr/sbin/named -f -u bind
6月 12 22:21:17 senri named[440]: received control channel command 'reload'
6月 12 22:21:17 senri named[440]: loading configuration from '/etc/bind/named.conf'
6月 12 22:21:17 senri named[440]: /etc/bind/named.conf.default-zones:2: when using...ews
6月 12 22:21:17 senri named[440]: reloading configuration failed: failure
6月 12 22:21:17 senri rndc[1111]: rndc: 'reload' failed: failure
6月 12 22:21:17 senri systemd[1]: bind9.service: control process exited, code=exit...s=1
6月 12 22:21:17 senri systemd[1]: Reload failed for BIND Domain Name Server.
Hint: Some lines were ellipsized, use -l to show in full.
どうやら何処に -l を置いても良い らしいが、意外と大雑把では あるsystemctl -l status bind9.service
systemctl status -l bind9.service
systemctl status bind9.service -l
ついでに journalctl -xn も試して見ると、● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; enabled)
Drop-In: /run/systemd/generator/bind9.service.d
mq50-insserv.conf-$named.conf
Active: active (running) (Result: exit-code) since 金 2015-06-05 07:26:13 JST; 1 weeks 0 days ago
Docs: man:named(8)
Process: 1111 ExecReload=/usr/sbin/rndc reload (code=exited, status=1/FAILURE)
Main PID: 440 (named)
CGroup: /system.slice/bind9.service
mq440 /usr/sbin/named -f -u bind
6月 12 22:21:17 senri named[440]: received control channel command 'reload'
6月 12 22:21:17 senri named[440]: loading configuration from '/etc/bind/named.conf'
6月 12 22:21:17 senri named[440]: /etc/bind/named.conf.default-zones:2: when using 'view' statements, all zones must be in views
6月 12 22:21:17 senri named[440]: reloading configuration failed: failure
6月 12 22:21:17 senri rndc[1111]: rndc: 'reload' failed: failure
6月 12 22:21:17 senri systemd[1]: bind9.service: control process exited, code=exited status=1
6月 12 22:21:17 senri systemd[1]: Reload failed for BIND Domain Name Server.
テキストエディタ(昔のラインエディタ?) の様(よう)な状態と なり、ファイルが開かれた ままで停止するjournalctl -xn
-- Logs begin at 金 2015-06-05 07:26:09 JST, end at 金 2015-06-12 22:23:58 JST. --
6月 12 22:21:17 senri named[440]: loading configuration from '/etc/bind/named.conf'
6月 12 22:21:17 senri named[440]: ^[[1;31m/etc/bind/named.conf.default-zones:2: when using 'view' statements, all zones must be in views^[[0m
6月 12 22:21:17 senri named[440]: ^[[1;31mreloading configuration failed: failure^[[0m
6月 12 22:21:17 senri rndc[1111]: rndc: 'reload' failed: failure
6月 12 22:21:17 senri systemd[1]: ^[[1;39mbind9.service: control process exited, code=exited status=1^[[0m
6月 12 22:21:17 senri systemd[1]: ^[[1;31mReload failed for BIND Domain Name Server.^[[0m
-- Subject: Unit bind9.service has finished reloading its configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit bind9.service has finished reloading its configuration
--
-- The result is failed.
~
~
~
(stdin):
の箇所で ある/etc/bind/named.conf.default-zones:2: when using 'view' statements, all zones must be in views
ここの named.conf.local ファイル内に view 構文を記述したので あるが、その際には named.conf.default-zones を含む全てのゾーン定義に view を適用しなければ ならない と言う事らしいinclude "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
変更前cd /etc/bind/
cp -p named.conf.default-zones named.conf.default-zones.org
vi named.conf.default-zones
変更後// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
と変更して、これで どうなるかと試して見ると、// prime the server with knowledge of the root servers
acl default-zones { 192.168.0.0/24;
127.0.0.1;
};
view "default-zones" {
match-clients { default-zones; };
zone "." {
type hint;
file "/etc/bind/db.root";
};
- 省略 -
};
どうやら今度は正常に再読み込みが行われた らしい/etc/init.d/bind9 reload
変更前mv named.conf.default-zones.org named.conf.default-zones
cp -p named.conf named.conf.[日付か何か]
vi named.conf
変更後include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
こう言った反則に近い事が出来るのかと訝(いぶか)しみ ながら試して見ると、include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
view "default-zones" {
include "/etc/bind/named.conf.default-zones";
match-clients { default-zones; };
};
acl default-zones { 192.168.0.0/24;
127.0.0.1;
};
どうやら問題無く再読み込みが出来て しまった.../etc/init.d/bind9 reload
named.conf.local と named.conf.default-zones を同じ internal-zones view で囲んで しまおうと言う事で あるinclude "/etc/bind/named.conf.options";
view "internal-zones" {
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
match-clients { internal-zones; };
};
acl internal-zones { 192.168.0.0/24;
127.0.0.1;
};
...呆気(あっけ)無く再読み込みが行われて しまった…/etc/init.d/bind9 reload