-
Notifications
You must be signed in to change notification settings - Fork 142
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
How does DNS resoluton work? #67
Comments
@ur5us Hi, sorry for the delay. I'm planning to support the |
@ur5us |
@ur5us I'd say the root cause is the DNS cache. Clearing the cache and then running it should reference the domain in the hosts file. For instance, on macOS:
|
@nakabonne If you look at the 2nd example this is exactly what I did!
The only difference is that I used a custom hosts file ( |
@ur5us Your 3rd example (with modifying the host’s
|
And I was able to repro the issue about custom hosts file mapped into the container with |
I’d like to map a few domains/hosts to certain IP address, e.g. to load test a new server. I tried the following things:
docker run --rm -it --add-host example.com:10.0.0.1 nakabonne/ali ali example.com
docker run --rm -it -v $(pwd)/hosts:/etc/hosts nakabonne/ali ali example.com
with a customhosts
file mapped into the containerdocker run --rm -it --network=host nakabonne/ali ali example.com
with a modifiedhosts
file on the docker hostbut none of the above worked for me. Instead,
ali
would always hit the original server.The text was updated successfully, but these errors were encountered: