Change zone files en masse
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/.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.
-
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. 0 -
Excellent! Not sure how I missed that initially, but the thread you linked to answered all of my questions. Many thanks! 0
Please sign in to leave a comment.
Comments
2 comments