tjfontaine / node-dns

Replacement dns module in pure javascript for node.js
MIT License
585 stars 153 forks source link

retry on timeout? #48

Closed porjo closed 11 years ago

porjo commented 11 years ago

The upstream node.js dns module will send another query to the nameserver after a few seconds if no response has been seen.

This isn't happening when I test with native-dns...it just calls the timeout event without any additional queries being sent.

I've tried explicitly setting the dns.platform.attempts value to be > 0 but that makes no difference.

I'd like to have at least one retry before the timeout callback is reached. Do I need to write a handler for this case, or is there a quick fix I can apply?

porjo commented 11 years ago

I've worked around this in my code