Skip to content

Commit

Permalink
feat(resources): export DNS records
Browse files Browse the repository at this point in the history
Support exporting DNS records in BIND format.

Signed-off-by: Terin Stock <terin@cloudflare.com>
  • Loading branch information
mikehardenize authored and terinjokes committed Jul 23, 2019
1 parent c3482e4 commit c7d48ad
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/resources/DNSRecords.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object>} The DNS browser response object.
*/
export: method({
method: 'GET',
path: 'export',
json: false,
}),

/**
* browse allows for listing all DNS Records for a zone
*
Expand Down

0 comments on commit c7d48ad

Please sign in to comment.