From aa2c6ad3bf6752c6da70b8f9483c4f988a69ce43 Mon Sep 17 00:00:00 2001 From: Abdelcadir Karim Date: Tue, 30 May 2017 16:57:56 +0200 Subject: [PATCH] replace addRecord() with addRecords() --- packages/dns/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dns/README.md b/packages/dns/README.md index c42a3f3a91d..a18ba509762 100644 --- a/packages/dns/README.md +++ b/packages/dns/README.md @@ -31,13 +31,13 @@ var nsRecord = zone.record('ns', { data: 'ns-cloud1.googledomains.com.' }); -zone.addRecord(nsRecord, function(err, change) {}); +zone.addRecords([nsRecord], function(err, change) {}); // Create a zonefile from the records in your zone. zone.export('/zonefile.zone', function(err) {}); // Promises are also supported by omitting callbacks. -zone.addRecords(nsRecord).then(function(data) { +zone.addRecords([nsRecord]).then(function(data) { var change = data[0]; });