edigest

Active Member
Nov 24, 2010
44
0
56
S. Pole
cPanel Access Level
Root Administrator
Apologies if this is in the docs; can't find it.

I want to change zone files en masse. That is for a block of domains, for example, I want to change ns7 and ns8 to ns1 and ns2.

Is there an API or CPanel script I can leverage?

Lastly, can I directly edit /var/named/<domain>.db safely? (And is that the zone file?) In the absence of an API, I'm fine with writing a script to edit the zone files.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

You could use the "replace" command to update multiple zone files and then update the serials. There is a thread on this here:

Bulk DNS Zone Update

Thank you.