Need to delete all 'DNS Only' Zones

MantisComp

Active Member
Oct 16, 2008
36
0
56
Hi
I need to remove all know DNS Zones on my 'DNS Only' server as they have become out of sync with a new cPanel server.
Any ideas how I can remove/purge all zones?

Thanks
Rob
 

MantisComp

Active Member
Oct 16, 2008
36
0
56
Thanks, I tried that but end up with a '>' prompt and nothing happens.
I have to press 'ctrl + c' to return to and normal '[email protected] [~]#' prompt.
Am I doing something wrong?
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
Earth
Ok, do one thing, execute each line as I gave you and hit enter

for i in `ls -la /var/named/*.db | sed s'/\.db//g' | awk '{print $9}' | cut -d/ -f4`
do
/scripts/killdns $i;
done;
You will see a '>' sign once you type the first 'for..' line and hit enter, but continue to execute the commands as given above.