I Accidently Deleted a lot of DNS Zones from /var/named

Dr. Bogger

Well-Known Member
Dec 21, 2003
95
0
156
I accidently deleted a bunch of DNS Zone .db files from /var/named... i tried to add them each back one by one, and in whm under "Add a DNS Zone", i get this error: "Sorry, that's an invalid domain"

Anyone know how i can add the dns zones back in named?
 

blkjck

Well-Known Member
Sep 17, 2003
64
0
156
cpbackup makes a backup of var named if you have backup enabled.
make sure group named has access to the files db files.
 

silversurfer

Well-Known Member
Dec 29, 2002
274
0
168
Even if you deleted the zones from /var/named, the configuration will still have them. You would need to remove the corresponding zones from /etc/named.conf before readding.

If you have local backups enabled, check

PATH_TO_BACKUP/cpbackup/daily/daily/dirs/_var_named


It should have all your zones. If backups have already updated, try weekly and so on.
 

apscinsspl

Well-Known Member
Mar 15, 2008
112
0
66
Delete its entry from /etc/named.conf also and then add it from WHM.

Else from SSH create a db directly in /var/named

Either ways should solve the problem