Michelle Konzack <linux4miche...@gmail.com> wrote:
>
> OK, I can grep the whole /etc/bind/master/ directory, but since my  Name
> Server is responsable for several 1000 (sub)domains,  the  execution  of
> the script takes ages!

Your approach seems reasonable to me. I'm surprised it takes that long,
unless "several" is 10s or 100s of thousands!

You can make your script tighter, though I would be surprised if it
improves the performance much.

find /etc/bind/master -type f |
egrep -v '(.conf|.signed|.private|.key)$' |
xargs egrep -h "IN CNAME.*${VSERVER}" |
sed 's|\.[ \t]*IN CNAME.*||'

Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  http://dotat.at/  -  I xn--zr8h punycode
Forth, Tyne, Dogger, Fisher: West or southwest 5 to 7, increasing gale 8 or
perhaps severe gale 9 later. Moderate or rough, occasionally very rough later.
Rain or showers. Good, occasionally poor.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to