diff --git a/src/dns/route53.js b/src/dns/route53.js index fcd4ff9c9..9ef67b71a 100644 --- a/src/dns/route53.js +++ b/src/dns/route53.js @@ -281,13 +281,14 @@ function verifyDnsConfig(domainObject, callback) { } const location = 'cloudrontestdns'; + const newDomainObject = Object.assign({ }, domainObject, { config: credentials }); - upsert(domainObject, location, 'A', [ ip ], function (error) { + upsert(newDomainObject, location, 'A', [ ip ], function (error) { if (error) return callback(error); debug('verifyDnsConfig: Test A record added'); - del(domainObject, location, 'A', [ ip ], function (error) { + del(newDomainObject, location, 'A', [ ip ], function (error) { if (error) return callback(error); debug('verifyDnsConfig: Test A record removed again');