old plesk zone files to /var/named/domain.com.db

Erida79

New member
Joined
Jul 2, 2014
Messages
8
I've got a lot of old plesk 8 dns zones like :

Code:
$ORIGIN .
$TTL 86400      ; 1 day
domain.nl           IN SOA  ns.domain.nl. admin.domain.nl. (
                                2014071501 ; serial
                                10800      ; refresh (3 hours)
                                3600       ; retry (1 hour)
                                604800     ; expire (1 week)
                                10800      ; minimum (3 hours)
                                )
                        NS      ns4.domain.nl.
                        NS      ns6.domain.nl.
                        A       1.1.1.1.1
                        MX      10 mx.domain.com.
                        MX      20 fallbackmx.domain.eu.
                        MX      30 lastmx.domain.net.
$ORIGIN huisman-bv.nl.
ftp                     CNAME   domain.nl.
localhost               A       127.0.0.1
mail                    A       212.84.0.0
pop3                    A       212.84.0.0
remote                  A       217.121.0.0
webmail                 A       212.84.0.0
www                     CNAME   domain.nl.

When i copy this file to a directadmin server and overwrite the file /var/named/domain.nl.db and tally rewrite named the zone is empty under dns control for this domain.

What i want is to copy my old plesk zones and overwrite the directadmin zones. Does the domainnl.db need a specific markup or something so directadmin accepts and sees this zone?

I am trying it this way because i have about 500 domains using this old plesk dns server. My new setup has 2 powerdns servers with mysql replication between them and on each directadmin server i modified named.conf to also-notify the first powerdns server.

I can't sync all the zones to the first powerdns server because the directadmin server will overwrite them again, and i can't axfr them to directadmin because directadmin is master for all his domains.
 
I've created a php script with or php programmer. This script rewrites all plesk zone files to the right directadmin zone format/syntax and edit the serial.

Then copy all ze zone.com.db files to /var/named and tally named.

Restart named so the zones are transferred to my dns servers

DONE!!!!!
 
Back
Top