build/lib/Hostname.js
function lookupAsync(hostname) {
    return new Promise((resolve, reject) => {
        dns.lookup(hostname, { all: true }, (err, addresses) => {
            if (err)
                return reject(err);
            resolve(addresses[0].address);
        });
    });
}
function lookupAsync(hostname) {
    return new Promise((resolve, reject) => {
        dns.lookup(hostname, { all: true }, (err, addresses) => {
            if (err)
                return reject(err);
            resolve(addresses[0].address);
        });
    });
}
function lookupAsync ( hostname ) { return new Promise ( ( resolve , reject ) => { dns . lookup ( hostname , { all : true } , ( err , addresses ) => { if ( err ) return reject ( err ) ; resolve ( addresses [ 0 ] . address ) ; } ) ; } ) ; }
Tries to look up a hostname and returns the first IP address found
Tries to look up a hostname and returns the first IP address found