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

Consider using dnscache for caching DNS requests #111

Open
bwateratmsft opened this issue Oct 21, 2019 · 1 comment
Open

Consider using dnscache for caching DNS requests #111

bwateratmsft opened this issue Oct 21, 2019 · 1 comment

Comments

@bwateratmsft
Copy link
Contributor

bwateratmsft commented Oct 21, 2019

This came up from microsoft/vscode-docker#1292 originally. It seems like Node.js does DNS lookups every single HTTP request: nodejs/node#5893

Supposedly, this can be resolved by configuring a system-wide DNS cache, or using packages like dnscache.

Can docker-modem make use of that package, or make it an option, in order to reduce DNS traffic in things like the vscode-docker extension?

@karolz-ms
Copy link

Another approach is to leverage nodejs/node#9296 to retrieve TTL information about DNS records and not repeat the resolution until the record has expired.

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