From Manual:
By default, nginx caches answers using the TTL value of a response. An
optional|valid|parameter allows overriding it:
resolver 127.0.0.1 [::1]:5353 valid=30s;
Before version 1.1.9, tuning of caching time was not possible, and
nginx always cached answers for the duration of 5 minutes.
Best regards,
Vintila Mihai Alexandru
On 5/12/2016 12:36 PM, RT.Nat wrote:
> Troubled up in DNS caching of the IP address for a given DNS name.
>
> Adding the solution given below does not solve the problem of DNS caching in
> NGINX.
>
> resolver 8.8.8.8;
> set $upstream_endpoint https://example.net:8080;
> location / {
> proxy_pass $upstream_endpoint;
> }
>
> Is there any solutions?
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266857,266857#msg-266857
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx