Hide Forgot
Created attachment 1139196 [details] nginx dhclient-script Attached is a script that generates resolver configs for nginx from DHCP data received by dhclient(-script). One example problem case that this solves on setups using dhclient: http://thread.gmane.org/gmane.comp.web.nginx.english/46277 Even though this does work out of the box (tested on CentOS 7 with nginx upstream rpms), the safe bet would be to just include it as %doc in the nginx package, at least for now. Let me know if you'd like me to do that and push a new rawhide build.
Created attachment 1139197 [details] nginx dhclient-script Ah, this stuff works also with nm-dispatcher due to its dhclient-script emulation. And it seems to care about the script exit status; this version avoids that noise on setups where nginx is installed but not running.
Hi Ville. Thanks for this but I don't think this really belongs in the nginx package, sorry.
Why? Do you think it belongs somewhere else? Please elaborate.
Ville Skyttä, this belongs upstream if anywhere.
I looked into it and no longer deem this good practice. For an explanation see http://blog.zorinaq.com/nginx-resolver-vulns/