Closed patrickfl closed 1 year ago
Thank you for your contribution. It looks good at a first quick glance. I'd like to see a few minor changes before merging this.
A question though: What's your use case here? I did not try it yet, but the difference between
export-zone
and redirecting the output ofget-records
to a file seem minimal to me.
You are right the differences are only minimal, get-records is for example missing the SOA record. The idea behind this PR is to provide a 1:1 cli function for the desec REST API zone file endpoint (/domains/{domain}/zonefile/)
Added export-zone file action which allows to directly download the domain export as zonefile.