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 |
||
(One intermediate revision by the same user not shown) | |||
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 '[";]' | \ | ||
paste - - | while read zone | paste - - | while read zone zonefile | ||
do | do | ||
named-checkzone -k ignore $zone $ | named-checkzone -k ignore $zone $zonefile | ||
done | done | ||
</source> | </source> |
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