DNS Caching Issue For community version
Mihai Vintila
unixro at gmail.com
Thu May 12 10:49:46 UTC 2016
Have you also checked that the DNS returns the correct value? As the
valid option means that nginx will ask the DNS server again, but if the
DNS replies with same old ip.. Also you might check using directly the
hostname as it might be possible that there is a bug when using variables.
Best regards,
Vintila Mihai Alexandru
On 5/12/2016 1:11 PM, RT.Nat wrote:
> I wanted check whether the resolver solves the DNS in a dynamic manner when
> the ip addresses changes.
>
> So I add the given code after several findings and yet the resolving the ip
> address is not happening.
>
> server{
> ...........
>
> resolver 8.8.8.8 valid=30s;
> resolver_timeout 10s;
> set $upstream "example.net";
>
> location / {
> rewrite ^/(.*) /$1 break;
> proxy_pass https://$upstream:3000;
>
>
> }
>
> }
>
> Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266857,266862#msg-266862
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160512/87df3869/attachment.html>
More information about the nginx
mailing list