Bulk edits to your DNS Zones: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 June 2024

  • curprev 05:3305:33, 20 June 2024Qljca talk contribs 1,280 bytes +1,280 Created page with "1. To back up all zones, run the following command: <pre> cp -rf /var/named{,.backup} </pre> 2. Replace the nameservers used. In the following examples, we will use ns1.olddomain.tld and ns2.olddomain.tldas the current nameservers, and ns1/2.newddomain.tldfor the updated records, be sure to update the oldns and newns variables. <pre> oldns="ns1.olddomain.tld"; newns="ns1.newdomain.tld" ; find /var/named/*.db -exec perl -pi -e "s/(?<=IN\s\NS\s)$oldns/$newns/g" '{}' \; </..."