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

bind to default DNS port? #20

Open
brandonros opened this issue Feb 3, 2017 · 1 comment
Open

bind to default DNS port? #20

brandonros opened this issue Feb 3, 2017 · 1 comment

Comments

@brandonros
Copy link

var named = require('node-named');

var server = named.createServer();

server.listen(53, '192.168.0.4', function() {
  console.log('DNS server started on port 53');
});

server.on('query', function(query) {
	console.log(query.name());
});
foo:dns brandonros$ sudo node app.js
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: bind EINVAL 192.168.0.4:53
@reverofevil
Copy link

reverofevil commented Apr 13, 2017

@brandonros Same problem. Running as administrator doesn't help.

UPD. It doesn't matter what port do you use. It doesn't work at all. The reason are two rows in server.js that contain udp6 that creates problems with this version of Node.js and Windows. Replace them with udp4 to make it work.

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

2 participants