How can I export my DNS zones to a file?
Hey @ilia-luk,
There’s no button for this, but you can make an API call to getDnsZones with curl, Postman, or our js-client that will return all the zones your team has access to:
Please let us know if you have any other questions!
@jen could you provide me with the related api call to get the zone file?
Link is right there in the post, @Syerad
It would be nice to have an option to export DNS records to a zone file. To workaround this, I made my own tool to do this using the Netlify API: GitHub - Samyak2/netlify-dns-zone-file: Generate a DNS Zone File out of your Netlify DNS Zones. Works for migrating to Cloudflare.
I would love to get some feedback on it.
Looks great! At an initial glance, it appears that it would take care of most situations, so should work fine for a lot of people, thanks for sharing!