From c7d48ad1d4c11b45634d5570d5deb97133aa97b1 Mon Sep 17 00:00:00 2001 From: Mike Cardwell Date: Tue, 21 Aug 2018 16:09:19 +0100 Subject: [PATCH] feat(resources): export DNS records Support exporting DNS records in BIND format. Signed-off-by: Terin Stock --- lib/resources/DNSRecords.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/resources/DNSRecords.js b/lib/resources/DNSRecords.js index 6f7b405..f108f95 100644 --- a/lib/resources/DNSRecords.js +++ b/lib/resources/DNSRecords.js @@ -44,6 +44,22 @@ module.exports = auto( path: ':id', }), + /** + * export retrieves all of a zone's DNS Records in BIND configuration format. + * + * @function export + * @memberof DNSRecords + * @instance + * @async + * @param {string} zone_id - The zone ID + * @returns {Promise} The DNS browser response object. + */ + export: method({ + method: 'GET', + path: 'export', + json: false, + }), + /** * browse allows for listing all DNS Records for a zone *