Skip to content

Conversation

hujiulong
Copy link

Fix #314.

Users can provide a lookup option to replace Node.js's internal default synchronous DNS resolution, significantly improving performance in cases where DNS resolution might time out.

The dns.resolve() methods are asynchronous but behave slightly differently from the default dns.lookup(). For example, dns.resolve() does not follow the local hosts file. Considering these behavioral differences, an option is provided for users to pass in, rather than modifying it internally.

Reference Information: #314 and Nodejs DNS docs

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

Successfully merging this pull request may close these issues.

Synchronous DNS resolution affects the performance of this library

1 participant