201601.25
Désactivé
0

Copy DNS between servers

Hi, it would be really good to have functions to pass data and parameters from one ISPConfig to another. In the mean time this is what I did to transfer 200+ DNS zones from an old ISPConfig serveur to a new one (ISPConfig 3.0.5.4p8), getting round the NS problem flagged elsewhere :

OLD SERVER :

1) Disactivate any old domaines
2) Make a list of all the good domaines
3) Zip /etc/bind/ and unzip to my local PC (you get all the disactivated zones too)
4) Remove the 'pri.' prefix so import can correctly guess domaine name.

NEW SERVER :

5) Import the good domain zones one by one with ISPConfig, DNS, Zone File Import (used default/empty field values so surprisingly quick: Select file, import, select file, import…). Each zone has NS records removed and replaced just with NS ns1.mydomaine.tld, so…
6) Export the table dbispconfig.dns_rr in SQL format, extract the NS ns1.mydomaine.tld records, replace ns1 with ns2 and reimport with SQL
7) This is a good moment to correct TTLs and other mistakes in dns_rr
8) Resync /etc/bind/ with ISPConfig, Tools, Resync, Resync DNS records

NEW SECOND PRIMARY SERVER:

9) Copy tables dbispconfig.dns_rr and dbispconfig.dns_soa from NEW SERVER (phpAdmin Export/Import)
10) Resync /etc/bind/ with ISPConfig, Tools, Resync, Resync DNS records. This created all the zone files in /etc/bind/