mahdy_sharifi

Well-Known Member
Feb 26, 2012
218
1
68
cPanel Access Level
Root Administrator
Hello :

I want reset DNS zone from command line , which script used for this purpose ?

Thank You
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

There is no direct command line equivalent script to the Reset a DNS Zone feature in Web Host Manager. However, you could delete and re-create the DNS Zone, as indicated in the instructions here on completing this for multiple zones:

DNS Zone - Reset All Zones

Thank you.
 

TechShogun

Registered
Feb 26, 2013
2
0
1
cPanel Access Level
Root Administrator
Hello,

I noticed deleting and recreating DNS zones doesn't restore A records for subdomains. Resetting the zone, however, does. Is there a work around to this?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
You could reset the DNS Zone in Web Host Manager if necessary. Could you elaborate on why you are having to reset the DNS Zones?

Thank you.