- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Export Zone in BIND format via API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2024 02:43 AM
Hi!
We want to track changes using Git, and need to export zones in BIND-format. Is it possible to do this through the API? I know I can use Zone Transfer, but wanted to know if it's possible from the API as well. I don't want to synthesize from the CSV export - if that's the only way, I will go for the Zone Transfer instead.
It's not a big issue, but we have the infrastructure in place for API-calls, so would prefer that over a zone transfer
Cheers,
Anders
Re: Export Zone in BIND format via API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 05:56 AM
If you need Bind format, zone transfer is the only method. Any other method would have you synthesizing a Bind file unfortunately.
Note that some synthesing records such as DTC or ALIAS records will not show up in zone transfers. On the other hand, DNSSEC signed zones will not export via CSV. So neither option is perfect for all use cases.
Re: Export Zone in BIND format via API?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2024 09:37 PM
Hi ,
Please advice how we can export zones and records in Bind Format >
Thanks
Re: Export Zone in BIND format via API?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 08:14 AM - edited 08-29-2024 08:20 AM
Using a zone transfer is the best method. API calls are fine for individual objects, but not for zone transfers.
Note that zone transfers need to be permitted at either the zone or member or grid level, from the system performing zone transfers.
Many scripting and devemopment languages have a DNS library that can perform zone transfers. Or it can be performed at the command line, for example:
dig @{dns server ip address} example.com AXFR