Fix DNS example in docs
This commit is contained in:
parent
2a4568c85f
commit
6fdb874e2e
@ -2490,8 +2490,7 @@ resolves the IP addresses which are returned.
|
|||||||
|
|
||||||
console.log('addresses: ' + JSON.stringify(addresses));
|
console.log('addresses: ' + JSON.stringify(addresses));
|
||||||
|
|
||||||
for (var i = 0; i < addresses.length; i++) {
|
addresses.forEach(function (a) {
|
||||||
var a = addresses[i];
|
|
||||||
dns.reverse(a, function (err, domains) {
|
dns.reverse(a, function (err, domains) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('reverse for ' + a + ' failed: ' +
|
console.log('reverse for ' + a + ' failed: ' +
|
||||||
@ -2501,7 +2500,7 @@ resolves the IP addresses which are returned.
|
|||||||
JSON.stringify(domains));
|
JSON.stringify(domains));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
### dns.resolve(domain, rrtype='A', callback)
|
### dns.resolve(domain, rrtype='A', callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user