Add DNS Express Zones for All Zones in named.conf
Problem this snippet solves: Here's a little command to add DNS Express Zones for all the zones in named.conf via tmsh. This has changed in 11.6 and possible 11.5 The syntax in 11.6 is: tmsh ltm dns...
Published Mar 10, 2015
Version 1.0Alex__Applebaum
Employee
Joined June 12, 2006
Alex__Applebaum
Employee
Joined June 12, 2006
Wand_97484
Jun 06, 2016Nimbostratus
Thanks for sharing we are moving our ~7000 zone to DNS Express atm.
If your named.conf contains zone with mixed case, convert it to to lower case with the additional awk:
for i in `egrep zone /var/named/config/named.conf | sed -e 's/.*\"\(.*\)\.\".*/\1/g' | awk '{print tolower($0)}'`;