I deleted a Zone from WHM but when I try to Add again it shows Error.

Jul 22, 2015
21
2
3
Lahore
cPanel Access Level
Root Administrator
Hi,
I deleted a DNS zone from the server but when I tried to add is back I get an error which is as follows
The domain bleongs to username ......
WHat is the issue? Please help.....

Also that zone does not exists anymore.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello :)

Are you sure the DNS zone was successfully deleted? Try removing it again via a command such as:

Code:
/scripts/killdns $domain.com
Then, check to see if a DNS= entry for this domain name exists in the /var/cpanel/users/$username file of the username it's listed as belonging to.

Thank you.
 
Jul 22, 2015
21
2
3
Lahore
cPanel Access Level
Root Administrator
Thanks for the Reply, But the domain is added in the hosting But there is no zone of the domain in WHM I think I deleted it. Where as in /var/cpanel/users/khalidre it shows as follows:
===================================================================================
[Removed Actual Domains]
===================================================================================
where [Removed Actual Domains] is the domain whos zone I want to create.

With the following code it shows unable to delete zone as it is already removed.
/scripts/killdns $domain.com
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
I suggest adding the zone back in via:

"WHM Home » DNS Functions » Add a DNS Zone"

Ensure you select the username associated with the account it's added to. Then, instead of manually deleting the zone, delete the domain name as an addon/parked domain name from the account itself through cPanel.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.