Browse Source

Fix DNS example in docs

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
6fdb874e2e
  1. 5
      doc/api.markdown

5
doc/api.markdown

@ -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…
Cancel
Save