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

Disable _resolve for IP family if not requested #62

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

edwinclement08
Copy link

@edwinclement08 edwinclement08 commented Aug 4, 2022

This prevents adding IPv6 resolution if only IPv4 is requested.

We had a client with a misconfigured DNS server that times out and fails with SERVFAIL(on IPv6).
Without this patch, the lookup fails even though the IPv4 promise has been resolved with the IP.

source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
source/index.js Outdated Show resolved Hide resolved
@szmarczak
Copy link
Owner

Can you add a test for this? Just to confirm that it works.

source/index.js Outdated Show resolved Hide resolved
@edwinclement08
Copy link
Author

Can you add a test for this? Just to confirm that it works.

Getting this error when trying to run the tests on 6.0.4.
Are the tests broken or something beyond npm install is needed to set up the test cases?

image

@szmarczak
Copy link
Owner

It should just work. Can you try npx ava --serial?

@edwinclement08
Copy link
Author

Nope, just timing out
image

Will check in depth another time

@szmarczak
Copy link
Owner

What OS are you running?

@edwinclement08
Copy link
Author

edwinclement08 commented Aug 4, 2022 via email

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.

None yet

2 participants