Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c7d48ad

Browse files
mikehardenizeterinjokes
authored andcommitted
feat(resources): export DNS records
Support exporting DNS records in BIND format. Signed-off-by: Terin Stock <terin@cloudflare.com>
1 parent c3482e4 commit c7d48ad

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

lib/resources/DNSRecords.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ module.exports = auto(
4444
path: ':id',
4545
}),
4646

47+
/**
48+
* export retrieves all of a zone's DNS Records in BIND configuration format.
49+
*
50+
* @function export
51+
* @memberof DNSRecords
52+
* @instance
53+
* @async
54+
* @param {string} zone_id - The zone ID
55+
* @returns {Promise<Object>} The DNS browser response object.
56+
*/
57+
export: method({
58+
method: 'GET',
59+
path: 'export',
60+
json: false,
61+
}),
62+
4763
/**
4864
* browse allows for listing all DNS Records for a zone
4965
*

0 commit comments

Comments
 (0)