-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
NGINX_PROXY_PASS_URL use long cache DNS resolution #333
Comments
Hi, thank you for using my project an submitting issue. You're totally right, this is a common issue where nginx is saving the IP after a DNS query and will not update it. |
Sorry for the late release, should be available in 2.5.3 |
Hi there |
hello, what if during bootstrap make a stub request to 127.0.0.11 and if get replied automatically set NGINX_RESOLVER? this to avoid the need to have this to be manually set |
This needs |
i was using
NGINX_PROXY_PASS_URL=http://registry:5000
and another container on the same stack with the "registry" name, all is working good until the registry container get update/restarted and changes IP... seems the ui will take a pretty infinite cache of the old DNS resolution of the registry name causing, when accessing the UI
just restarting the UI container fixes the issue
i've also tested
ping registry
from container shell before restarting and the IP of registry container was the correct onehere some more detail on the issue that seems pretty related to nginx
https://serverfault.com/questions/240476/how-to-force-nginx-to-resolve-dns-of-a-dynamic-hostname-everytime-when-doing-p
The text was updated successfully, but these errors were encountered: