PDA

View Full Version : Import zones to MyDNS


MDW
22nd October 2007, 23:45
I am working on a proof of concept project to see if it will be viable to transfer all of our DNS zones from a hardcode named.conf DNS server along with all the several /etc/named.data/* dns stub files to a MySQL DNS environment then setup a MySQL database replication for the slave server environments.

Is there a tool or something I need to do to transfer several thousand zones from our old master DNS server (running on HP-UX v11) to a MyDNS server (running CentOS 5)?

A quick look on the master DNS server shows a named.conf file of 221k in size.

Thanks.

-- Michael

falko
23rd October 2007, 20:25
Unfortunately I don't know of such a tool. Maybe you can write a script that parses the BIND configuration and creates the MySQL queries to insert the data into MySQL.

MDW
24th October 2007, 15:33
How does one use the mydnsimport command with the AXFR option? Is it possible just to import the entire zone information from a remote master server or am I missing something?

-- M

falko
25th October 2007, 17:48
Did you take a look at man mydnsimport or mydnsimport --help?

hkaiser
24th March 2008, 01:33
Hi all,

dnsimport works great, it is easy to import all information from bind to mydns.
But there ist one problem, who to make it work with mydnsconfig?
I changed the sysuserid in the database, but mydnsconfig still says "you have not the privileg to view this zone". What can i do? Thanks in advance!

with best regards
hkaiser

PS: Falko and Till, with mydnsconfig you have made a very good job. Gratulations!

falko
24th March 2008, 14:19
Set sys_userid to 1, sys_groupid to 0, sys_perm_user and sys_perm_group to riud, and leave sys_perm_other empty for all records in the rr and soa tables.

madmac007
2nd June 2009, 20:38
Hi hkaiser
I am stuck trying to do the same mydnsimport from BIND.
Can you help with some exaples please.

madmac