-
Notifications
You must be signed in to change notification settings - Fork 43
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
t/800_regression/01_capture_request.t fails in presence of wildcard DNS records #128
Comments
eserte
added a commit
to eserte/srezic-cpan-distroprefs
that referenced
this issue
Mar 7, 2022
Another possible solution: use a trailing dot in the invalid hostname. It seems that in this case the fallback to the search domains does not happen (at least this is the case on a debian:11 system). So
should work. |
eserte
added a commit
to eserte/Furl
that referenced
this issue
Mar 7, 2022
syohex
added a commit
that referenced
this issue
Mar 9, 2022
This was referenced Mar 30, 2022
This was referenced Dec 23, 2023
Open
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Furl's test suite fails on many of my smokers like this:
The problem is that the test hostname example.com.local, which obviously should not exist, actually resolves to something which has a web server running. This seems to happen if
a) the local DNS configuration does a fallback search for one or more domains (usually the default is to search for the local domain)
b) one of these domains has a wildcard DNS record
c) a webserver is running on the resolved address
It can be reproduced using the following
Dockerfile
(by experiments I found out that bing.com has a wildcard DNS record):How can this be resolved? The
LOCALDOMAIN
environment variable is possibly Linux-specific, but setting it's value to something really non-existent might help on these systems. Additionally maybe do agethostbyname
call and check if it really returns nothing, otherwise skip the test.The text was updated successfully, but these errors were encountered: