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