We had a problem this week with a cPanel server migration. Thought we would share what we learned since I didn’t see any websites or forums with answers to my questions.
First thing you should know is the cPanel stores the DNS into seperate files on the server. More or less one or more files per domain (usually just 1 file). You find these files in “/var/named” on the server. If you run into the problem we did where your files were corrupted, the only way to fix the issue is to delete or rename the file associated with the domain you are working on.
For example, if the domain itsmyparty.com was having DNS issues, and cPanel would’t let you edit the DNS zone because there were errors in it, and maybe you can’t even reset the zone because it also throws an error then you would
Now your DNS should be back to normal (matching the DNS template file) and the website should load normally, hurray! You now need to manually recreate all the DNS records for that domain, hope you had stored them somewhere…
© Copyright 2024 Sethmatics Websites All Rights Reserved.
If you are using an email address, like a google alias email, you will have issues with DNS in cPanel.
I had my email set to something like [email protected] and it was corrupting all the DNS files the cPanel creates upon new account creation. Just be careful you don’t have this issue too.