for dom in `cat dom`; do sed -i '/\/'$dom'.db/a \\tallow-transfer {127.0.0.1;};' /etc/named.conf ; done
sed add line after match from source file
Leave a reply
for dom in `cat dom`; do sed -i '/\/'$dom'.db/a \\tallow-transfer {127.0.0.1;};' /etc/named.conf ; done