const dns = require('dns');
function resolve(hostname, rrtype) {
return Promise.all(rrtype.map(rrt => resolveInternal(hostname, rrt)));
}
function resolveInternal(hostname, rrtype) {
return new Promise((resolve, reject) => {
dns.resolve(hostname, rrtype, (err, data) => {
if (err) {
reject(err);
return;
}
resolve(data);
});
});
}
resolve('google.com', ['A', 'MX', 'NS', 'TXT']).then(arr => console.log(arr));
Сама операционная система больше памяти требует
.social-list .social-list__items li > a[href*="vk.com"]::before {
content: '\f189';
}