Named-checkzone: Difference between revisions

From VVCWiki
Jump to navigationJump to search
(Created page with "<source lang="bash"> egrep -w "zone|file" /var/named/config/named.conf | \ awk '{print $2}' | tr -d '[";]' | \ paste - - | while read zone file do named-checkzone -k ignore $...")
 
mNo edit summary
Line 2: Line 2:
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 '[";]' | \
paste - - | while read zone file
paste - - | while read zone zonefile
do  
do  
named-checkzone -k ignore $zone $file
named-checkzone -k ignore $zone $zonefile
done
done
</source>
</source>

Revision as of 14:42, 30 January 2014

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