Keep dns when changing from parked to addon domain

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

Deleting a domain name as a parked or addon domain name will remove the DNS Zone. However, you could make a copy of it before removal with a command such as:

Code:
cp -a /var/named/domain.com.db /root/domain.com.db
Then, move it back into place, overwriting the new zone, after re-creating the domain name. You may also want to update the serial for the zone.

Thank you.