From www@isc.org Fri Mar 10 15:15:52 2017 MIME-Version: 1.0 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.0 X-Mailer: PHPMailer 5.2.22 (https://github.com/PHPMailer/PHPMailer) content-type: text/plain; charset="utf-8" Message-ID: <727c2354225ce225c78a45ce89fc2b1a@www.isc.org> Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.64.53]) by bugs.isc.org (Postfix) with ESMTP id 631F471B5A8 for ; Fri, 10 Mar 2017 15:15:52 +0000 (UTC) Received: from iscwebprod.isc.org (iscwebprod.isc.org [IPv6:2001:4f8:1:d::16]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 5C14A349918 for ; Fri, 10 Mar 2017 15:15:50 +0000 (UTC) Received: from www (uid 80) (envelope-from www@iscwebprod.isc.org) id 7b7d0b by iscwebprod.isc.org (DragonFly Mail Agent v0.11); Fri, 10 Mar 2017 15:15:50 +0000 Delivered-To: bind9-bugs@bugs.isc.org Subject: BIND 9.11.0-P3 - named-checkconf (and rndc reload also) still returns 0 errors about loading zone files is detected Return-Path: X-Original-To: bind9-bugs@bugs.isc.org Date: Fri, 10 Mar 2017 15:15:49 +0000 X-Wpcf7-Content-Type: text/plain X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org X-PHP-Originating-Script: 20001:class-phpmailer.php To: bind-bugs@isc.org From: "Xianrui Chen" X-RT-Original-Encoding: utf-8 X-RT-Interface: Email Content-Length: 2269 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