All,

Over the weekend I migrated some of my domains to a different DNS provider (
http://www.tomaz.me/2013/09/07/exporting-libcloud-dns-zone-to-bind-zone-file-format-and-migrating-between-dns-providers.html
so
I wrote a very simple script which allows you to export Libcloud zone to
BIND zone format.

Script is available at
https://github.com/Kami/python-libcloud-dns-to-bind-zone/blob/master/libcloud_to_bind/__init__.py

I believe this functionality would be useful in Libcloud core so I propose
the addition of the following methods to the base DNS driver:

- Zone.export_to_bind_format(file_obj)
- driver.export_zone_to_bind_format(zone, file_obj)

Some people might ask why would we add this to the core, but not
functionality for exporting VMs to different formats:

- VM export functionality is not supported by every provider.
- This code is simple and has no external dependencies. VM conversion code
would be anything but simple. Besides that, there are already other tools
which can do this (there is a redhat tool which can do that, but I can't
remember the name atm).

I would love to hear other people's opinion. Do you think this would be
useful in the core? Do you think this belongs in the core?

Thanks,
Tomaz

Reply via email to