Welcome! Log In Create A New Profile

Advanced

Re: monitor upstream IP addr changes without using nginx's resolver

January 16, 2015 02:18PM
Sorry am new to Lua but can you plz explain how this upstream status & control will help with this issue. How can i query for the upstream ip after every certain time interval and reconfigure nginx if there's a change detected ?
The reason for not using nginx's resolver here is that i have to parse the resolv.conf to get the nameservers which is not a clean solution as there are still some linux distros that don't use /etc/resolv.conf. This should be OS & implementation independent. How to make this work everywhere ?

Thanks
-Kunal


From: "itpp2012" <nginx-forum@nginx.us>
To: nginx@nginx.org
Sent: Tuesday, January 13, 2015 1:58:32 AM
Subject: Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti Wrote:
-------------------------------------------------------
> Is there already a patch for this ?
> I am not completely sure of how to make the nginx resolver (in
> ngx_resolver.c) fallback to libresolv automatically and if this not

Have a look at a Lua solution, not everything works yet,
patches/ideas/feedback welcome :)
http://nginx-win.ecsds.eu/devtest/EBLB_upstream_dev1.zip

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255961,256081#msg-256081

_______________________________________________
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

resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 05, 2015 06:06PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 03:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 06:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 06:38PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 07:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 07, 2015 07:32PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 04:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 12, 2015 05:20PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 05:56PM

Re: resolver directive doesn't fallback to the system DNS resolver

itpp2012 January 13, 2015 04:58AM

Re: monitor upstream IP addr changes without using nginx's resolver

kunalvjti January 16, 2015 02:18PM

Re: monitor upstream IP addr changes without using nginx's resolver

itpp2012 January 16, 2015 02:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready