This commit is contained in:
Girish Ramakrishnan
2017-02-01 23:25:13 -08:00
parent 20eaa60a97
commit 73f56efe2c

View File

@@ -255,11 +255,11 @@ function getEmailDnsRecords(callback) {
records.ptr.domain = ip.split('.').reverse().join('.') + '.in-addr.arpa';
dns.reverse(ip, function (error, records) {
dns.reverse(ip, function (error, ptrRecords) {
if (error && error.code === 'ENOTFOUND') return callback(null); // not setup
if (error) return callback(error);
records.ptr.value = records.join(' ');
records.ptr.value = ptrRecords.join(' ');
records.ptr.status = records.ptr.value === config.mailFqdn();
return callback();