msgbartop
Adam Palmer MBCS CITP, Linux, PHP Programmer, MySQL Developer, Embedded Hardware, Security Consultant
Did my blog help you? Please link to me!
  dns test
 
RSS Feed
msgbarbottom

20 Apr 09 cPanel rebuild all DNS zones

I recently had my datacenter set up a new cPanel/Fantastico server for our hosting platform. Unfortunately they spelled the site name incorrectly which caused a load of problems. You can change the hostname with relative ease from within the basic setup section, however once the wrong nameservers are specified and domains are generated you’re stuck.

After fixing the nameserver addresses, you’d think that ‘/scripts/rebuildnsdzones’ or ‘/scripts/rebuildnamedconf’ would be obvious candidates however no such luck.

The answer came in the form of a 3rd party script. Back up your /var/named directory, and then download/run this perl script: http://mirrors.ndchost.com/pub/ndchost/scripts/cpanel_rebuildbindzones

Did the job perfectly for me :)



Leave a Comment