Welcome! Log In Create A New Profile

Advanced

Re: DNS Caching Issue For community version

May 12, 2016 06:52AM
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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

DNS Caching Issue For community version

RT.Nat May 12, 2016 05:36AM

Re: DNS Caching Issue For community version

unixro May 12, 2016 05:52AM

Re: DNS Caching Issue For community version

RT.Nat May 12, 2016 06:01AM

RE: DNS Caching Issue For community version

Lukas Tribus May 12, 2016 06:06AM

Re: RE: DNS Caching Issue For community version

RT.Nat May 12, 2016 06:11AM

Re: DNS Caching Issue For community version

unixro May 12, 2016 06:52AM

Re: DNS Caching Issue For community version

RT.Nat May 13, 2016 02:13AM

Re: DNS Caching Issue For community version

Daniel Biazus May 15, 2016 05:04PM

Re: DNS Caching Issue For community version

RT.Nat May 16, 2016 12:27AM

Re: DNS Caching Issue For community version

wandenberg May 16, 2016 06:28AM

Re: DNS Caching Issue For community version

Francis Daly May 16, 2016 07:06PM

Re: RE: DNS Caching Issue For community version

Maxim Dounin May 12, 2016 07:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready