#76 Develop zone file 2 LDIF converter
Opened 11 years ago by pspacek. Modified 7 years ago

It can be handy during transition to IPA and also for testing puporses.


DNS Python seems reasonable: http://agiletesting.blogspot.com/2005/08/managing-dns-zone-files-with-dnspython.html

Only problem (AFAIK) is DNS TTL value conversion. Our LDAP schema supports TTL only per-name (not per-record as is usual in zones). I recommend to compute min() over all records with same name and use this minimal TTL in LDAP.

Initial script to do the gist of the work: https://github.com/darkcharl/zone2ldif. See if you can use it!

Hello Darkcharl! Thank you very much for your contribution.

I forgot to post my quick&dirty script for zone->LDIF conversion. It does basically the same thing as your script (not the difference in parameter no. 3) but I belive that my version is more general and works better with multiple values per-record etc.

Patches and improvements are more than welcome! Have a nice day.

Latest version of the script moved to new address: https://github.com/pspacek/zone2dyndb-ldif

Metadata Update from @pspacek:
- Issue assigned to someone
- Issue set to the milestone: The Backlog

7 years ago

Login to comment on this ticket.

Metadata