lib/auth_processes/mongodb.js
function performGssapiCanonicalizeHostName(canonicalizeHostName, host, callback) {
      if (!canonicalizeHostName) return callback();

      // Attempt to resolve the host name
      dns.resolveCname(host, (err, r) => {
        if (err) return callback(err);

        // Get the first resolve host id
        if (Array.isArray(r) && r.length > 0) {
          self.host = r[0];
        }

        callback();
      });
    }
function performGssapiCanonicalizeHostName(canonicalizeHostName, host, callback) {
      if (!canonicalizeHostName) return callback();

      // Attempt to resolve the host name
      dns.resolveCname(host, (err, r) => {
        if (err) return callback(err);

        // Get the first resolve host id
        if (Array.isArray(r) && r.length > 0) {
          self.host = r[0];
        }

        callback();
      });
    }
function performGssapiCanonicalizeHostName ( canonicalizeHostName , host , callback ) { if ( ! canonicalizeHostName ) return callback ( ) ; // Attempt to resolve the host name dns . resolveCname ( host , ( err , r ) => { if ( err ) return callback ( err ) ; // Get the first resolve host id if ( Array . isArray ( r ) && r . length > 0 ) { self . host = r [ 0 ] ; } callback ( ) ; } ) ; }
Canonicialize host name if needed
Canonicialize host name if needed