I'm still working on the staging phase for migration from Microsoft DNS. I
was successfully able to migrate all zone files from primary Microsoft DNS
server to pdns server and commit them to MySQL database. This is a script by
the way:
#!/bin/bash
DNSSERVER=x.x.x.x (IP address of the source DNS server)
DOMAINARRAY=`cat /path/to/importlist
For DOMAIN in $DOMAINARRAY;
do
dig @$DNSSERVER $DOMAIN AXFR > /path/to/list/$DOMAIN;
zone2sql -zone=/path/to/list/$DOMAIN -gmysql -zone-name=$DOMAIN | mysql -D
pdns -u root
done
exit 0
importlist is the list that was created by exporting zone files using DNS
MMC and then piping to awk:
# cat originallist_from_source_dns | awk {'print $1'} > importlist
But that was run and obtained from forward lookup zones. Do I have to import
reverse lookup zones the same way or I will need to manually add PTR RR to
every migrated domain? We run /20 network, that's 16 class C blocks and a
great deal of reverse zones.
Eugene
_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users