[v9_9] check hint files in named-checkconf -z

3676.	[bug]		"named-checkconf -z" now checks zones of type
			hint and redirect as well as master. [RT #35046]

(cherry picked from commit d999ca28d4)
This commit is contained in:
Evan Hunt
2013-11-25 12:30:59 -08:00
parent 13d58898c5
commit 2254826e4c
4 changed files with 76 additions and 7 deletions

View File

@@ -43,6 +43,12 @@ do
status=`expr $status + $ret`
done
echo "I: checking that named-checkconf -z catches missing hint file"
ret=0
$CHECKCONF -z hint-nofile.conf > /dev/null 2>&1 && ret=1
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
echo "I: checking named-checkconf dnssec warnings"
ret=0
$CHECKCONF dnssec.1 2>&1 | grep 'validation yes.*enable no' > /dev/null || ret=1