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

resolving multicast dns names fails with ENOENT #85

Open
timbertson opened this issue Oct 22, 2014 · 0 comments
Open

resolving multicast dns names fails with ENOENT #85

timbertson opened this issue Oct 22, 2014 · 0 comments

Comments

@timbertson
Copy link

This library doesn't seem to resolve multicast dns names, while the builtin dns module does.

Test script:

var dns = require('native-dns');
var builtinDns = require('dns');

var resolve = function(domain) {
  console.log("resolving " + domain);
  builtinDns.lookup(domain, 4, function(err, address) {
    console.log("builtin module returned", err, address);
  });
  dns.lookup(domain, 4, function(err, address) {
    console.log("native module returned", err, address);
  });
};

resolve('nixos-vm1.local');

output:

resolving nixos-vm1.local
native module returned { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' } undefined
builtin module returned null 192.168.1.109

Running on Linux (fedora 21, x86_64) with avahi-daemon and NetworkManager

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