From f8b41b703c2caad531c77289c4f8cf1c2c1d0dc0 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 28 Sep 2015 17:20:59 -0700 Subject: [PATCH] Use fqdn to generate domain name of txt records --- src/caas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caas.js b/src/caas.js index c8ac30a14..61aed54e1 100644 --- a/src/caas.js +++ b/src/caas.js @@ -22,7 +22,7 @@ function addSubdomain(zoneName, subdomain, type, value, callback) { assert.strictEqual(typeof value, 'string'); assert.strictEqual(typeof callback, 'function'); - var fqdn = subdomain !== '' && type === 'TXT' ? subdomain + '.' + zoneName : config.appFqdn(subdomain); + var fqdn = subdomain !== '' && type === 'TXT' ? subdomain + '.' + config.fqdn() : config.appFqdn(subdomain); debug('addSubdomain: zoneName: %s subdomain: %s type: %s value: %s fqdn: %s', zoneName, subdomain, type, value, fqdn);