Re: DNS Caching Issue For community version

2016-05-16 Thread Francis Daly
On Fri, May 13, 2016 at 02:13:05AM -0400, RT.Nat wrote: Hi there, why do you think that this does not work? As in: what request do you make that give you an unexpected response? And can you also show the "dig" command that shows that the nominated dns server has changed the resolution address th

Re: DNS Caching Issue For community version

2016-05-16 Thread Wandenberg Peixoto
You have to configure your nginx to use it like any other module. For instance, cd /Downloads/nginx ./configure --add-module=/Downloads/nginx-upstream-dynamic-servers-master make make install On May 16, 2016 01:28, "RT.Nat" wrote: > I cannot install the above module. > > /Downloads/nginx-upstream

Re: DNS Caching Issue For community version

2016-05-15 Thread RT.Nat
I cannot install the above module. /Downloads/nginx-upstream-dynamic-servers-master$ make install make: *** No rule to make target `install'. Stop. May i know is there any problem in my machine( any required prerequistes). Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266857,26691

Re: DNS Caching Issue For community version

2016-05-15 Thread Daniel Biazus
Maybe You should try this module: https://github.com/GUI/nginx-upstream-dynamic-servers Regards, Biazus On Fri, May 13, 2016 at 3:13 AM, RT.Nat wrote: > Not clear regarding, " Also you might check using directly the hostname as > it might be possible that there is a bug when using variables."

Re: DNS Caching Issue For community version

2016-05-12 Thread RT.Nat
Not clear regarding, " Also you might check using directly the hostname as it might be possible that there is a bug when using variables." I tried adding the variable for resolving the dns but still the ip address does not changes. Is there any other way? or is there any bug in my script. resolv

Re: RE: DNS Caching Issue For community version

2016-05-12 Thread Maxim Dounin
Hello! On Thu, May 12, 2016 at 06:11:36AM -0400, 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{ >

Re: DNS Caching Issue For community version

2016-05-12 Thread Mihai Vintila
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 re

Re: RE: DNS Caching Issue For community version

2016-05-12 Thread RT.Nat
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

RE: DNS Caching Issue For community version

2016-05-12 Thread Lukas Tribus
> Even adding the valid parameter the issue was not solved. And what is the issue actually? Just saying "DNS caching issue" and "problem" isn't really helpful. ___ nginx mailing list nginx@nginx.org http://mail

Re: DNS Caching Issue For community version

2016-05-12 Thread RT.Nat
Even adding the valid parameter the issue was not solved. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266857,266859#msg-266859 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: DNS Caching Issue For community version

2016-05-12 Thread Mihai Vintila
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

DNS Caching Issue For community version

2016-05-12 Thread RT.Nat
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? Po