Add API to get dns record

This commit is contained in:
Girish Ramakrishnan
2019-09-19 15:10:27 -07:00
parent 1974314c1f
commit b05a9ce064
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -394,7 +394,7 @@ function getDnsRecords(location, domain, type, callback) {
assert.strictEqual(typeof callback, 'function');
get(domain, function (error, domainObject) {
if (error) return callback(new DomainsError(DomainsError.INTERNAL_ERROR, error));
if (error) return callback(error);
api(domainObject.provider).get(domainObject, location, type, function (error, values) {
if (error) return callback(error);