Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native-dns 1:1 mapping of the upstream node.js dns module is broken #95

Open
mdebruijne opened this issue Mar 15, 2015 · 0 comments
Open

Comments

@mdebruijne
Copy link

Hi,

See below for scripts to reproduce the errors and the output when running these scripts. The only difference between these scripts is the usage of upstream node.js dns versus native-dns.

I think that the scripts and outputs are self-explanatory, but if more information is required then please let me know.

This is with node version 0.12 and native-dns version 0.7.0.


"use strict";

var dns = require("dns");
//var dns = require("native-dns");

var ip = "199.180.112.34";

dns.reverse(ip, function (err, hostnames) {
  if (err) {
    console.log(err);
  } else {
    console.log(hostnames);
  }
});

$ node dns.js
{ [Error: getHostByAddr ENOTFOUND 199.180.112.34]
  code: 'ENOTFOUND',
  errno: 'ENOTFOUND',
  syscall: 'getHostByAddr',
  hostname: '199.180.112.34' }

"use strict";

//var dns = require("dns");
var dns = require("native-dns");

var ip = "199.180.112.34";

dns.reverse(ip, function (err, hostnames) {
  if (err) {
    console.log(err);
  } else {
    console.log(hostnames);
  }
});

$ node dns.js
undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant