Named-checkzone: Difference between revisions

From VVCWiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
<source lang="bash">
<source lang="bash">
cd /var/named/config/namedb/
egrep -w "zone|file" /var/named/config/named.conf | \
egrep -w "zone|file" /var/named/config/named.conf | \
awk '{print $2}' | tr -d '[";]' | \
awk '{print $2}' | tr -d '[";]' | \

Latest revision as of 14:49, 30 January 2014

cd /var/named/config/namedb/
egrep -w "zone|file" /var/named/config/named.conf | \
awk '{print $2}' | tr -d '[";]' | \
paste - - | while read zone zonefile
do 
named-checkzone -k ignore $zone $zonefile
done