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

download: optional prefer ipv6 record #447

Closed
myfreeer opened this issue Nov 7, 2021 · 0 comments
Closed

download: optional prefer ipv6 record #447

myfreeer opened this issue Nov 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@myfreeer
Copy link
Member

myfreeer commented Nov 7, 2021

In package cacheable-lookup, the lookup method would lookup for both ipv4 and ipv6 records, but it would put put ipv4 records before ipv6 records if the dns resolver returns both results. The method query would pick the first result to return, which in this case would be ipv4 result.
Setting family to 6 for cacheable-lookup or setting dnsLookupIpVersion to ipv6 would not help since there is still many mdn domain with only ipv4 address.
For users with faster ipv6 network than ipv4, this can make downloading faster for developer.mozilla.org or any future ipv6 hosts.

@myfreeer myfreeer added the enhancement New feature or request label Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant