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

Error on response (-3) by AXFR on TLDs #1

Closed
peterfromthehill opened this issue Apr 11, 2015 · 4 comments
Closed

Error on response (-3) by AXFR on TLDs #1

peterfromthehill opened this issue Apr 11, 2015 · 4 comments

Comments

@peterfromthehill
Copy link

Hi,

thx for this nodejs module. On the most by me tested domains it work fine, but i need it to make a AXFR on a TLD and become anytime the -3 errorcode.

this is my code:
var dns = require('dns-axfr');
var util = require('util');

dns.resolveAxfr('b.monic.MO', '.MO', function(err, addr) {
  if (err) {
      console.error('Error ocurred: ' + addr + ' (' + err + ')');
      return;
  }

   console.log(util.inspect(addr));
});

with dig works the AXFR fine:
$ dig AXFR MO @b.monic.MO
...

i dont realy good in speaking DNS like you do it so i cant fix it by myself.

thank you!

@jpenalbae
Copy link
Owner

Thanks for reporting.

Fixed on commit 6cbb196 and published on npm with version 0.1.4.

Let me know if you have any other issues.

@peterfromthehill
Copy link
Author

Hi jpenalbae,

thx for your very fast response, but the "bug" is already there.
on my test code above i get the same error and here are a other test:

[root@localhost examples]# time dig AXFR gov.ph @dostmis.dost.gov.ph > /dev/null
real 0m1.817s
user 0m0.060s
sys 0m0.006s
[root@localhost examples]# time node test.js

real 0m31.571s
user 0m0.067s
sys 0m0.007s
[root@localhost examples]# cat test.js
var dns = require('../');
var util = require('util');

dns.resolveAxfr('dostmis.dost.gov.ph', 'gov.ph', function(err, addr) {
if (err) {
console.error('Error ocurred: ' + addr + ' (' + err + ')');
return;
}

console.log(util.inspect(addr));

});

any idea?

[root@localhost examples]# node -v
v0.10.36
[root@localhost examples]# npm -v
1.3.6
[root@localhost examples]#

is my node sufficient?

thx you!

@jpenalbae
Copy link
Owner

Its was my fault. I wasn't expecting DNS requests producing more than one DNS response.

Fixed on commit fe6bada and published on npm with version 0.1.5.

Please test it and let me know if you have any other problems.

@peterfromthehill
Copy link
Author

yeah! all works now! thx a lot for this fast fix!

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