Subject: | BIND 9.11.0-P3 - named-checkconf (and rndc reload also) still returns 0 errors about loading zone files is detected |
Date: | Fri, 10 Mar 2017 15:15:49 +0000 |
To: | bind-bugs@isc.org |
From: | "Xianrui Chen" <chenxianrui@outlook.com> |
Bug Report from www.isc.org:
Name: Xianrui Chen
Email: chenxianrui@outlook.com
Software Version: BIND 9.11.0-P3
OS: Debian 8.1
Subject:named-checkconf (and rndc reload also) still returns 0 errors about loading zone files is detected
Bug Detail
===========
I used named-checkconf '-z' options to perform test of master zones.
But I found that if the last master zone with no error detected, it would return 0, even if the former zone is reported with errors.
Also, rndc reload does not detected such error.
Below is a example.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# /usr/local/bind9/sbin/named-checkconf -z -t /home/named/ /etc/bind/named.conf
zone example.com/IN: loaded serial 20170310
zone example.com/IN: loaded serial 20170310
# echo $?
0
# vim /etc/bind/zones.conf
# /usr/local/bind9/sbin/named-checkconf -z -t /home/named/ /etc/bind/named.conf
zone example.com/IN: loading from master file zonefile/not-exist-example.com-Asia failed: file not found
zone example.com/IN: not loaded due to errors.
Asia/example.com/IN: file not found
zone example.com/IN: loaded serial 20170310
# echo $?
0
# vim /etc/bind/zones.conf
# /usr/local/bind9/sbin/named-checkconf -z -t /home/named/ /etc/bind/named.conf
zone example.com/IN: loaded serial 20170310
zone example.com/IN: loading from master file zonefile/not-exist-example.com-Default failed: file not found
zone example.com/IN: not loaded due to errors.
Default/example.com/IN: file not found
# echo $?
1
# /usr/local/bind9/sbin/rndc -k /etc/bind/rndc.key reload
server reload successful
# /usr/local/bind9/sbin/named-checkconf -z -t /home/named/ /etc/bind/named.conf
zone example.com/IN: loaded serial 20170310
zone example.com/IN: loading from master file zonefile/not-exist-example.com-Default failed: file not found
zone example.com/IN: not loaded due to errors.
Default/example.com/IN: file not found
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I compiled bind 9.11.0 manually.
And the configure options are: --with-openssl=yes --enable-static --enable-threads --enable-querytrace
I'm willing to provide more information if's needed.
Looking forward to your reply.
Thanks.
---
This email was received through isc.org Bug Submission Form