<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>This is what i have.<br><br>http {<br>  server {<br>    listen 443;<br>    location ^~ /zss<br>    {<br>       proxy_pass      https://www.example.com$request_uri;<br>    }<br>  }<br>}<br><br>Now as per http://gc-taylor.com/blog/2011/11/10/nginx-aws-elb-name-resolution-resolvers/, If you are running nginx as a proxy in front of An Amazon Web Services Elastic Load Balancer (ELB) which is the case for me, it is not safe to merely define an upstream using the hostname of ELB and call it a day. Although i <strong>don't</strong> want to use this resolver directive here and instead just want nginx to use the system DNS resolver (from /etc/resolv.conf). Is there a way to achieve this ?<br><br>Thanks<br>-Kunal<br><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Francis Daly" <francis@daoine.org><br><b>To: </b>nginx@nginx.org<br><b>Sent: </b>Wednesday, January 7, 2015 3:14:17 PM<br><b>Subject: </b>Re: resolver directive doesn't fallback to the system DNS resolver<br></div><div><br>On Mon, Jan 05, 2015 at 05:04:52PM -0600, Kunal Pariani wrote:<br><br>Hi there,<br><br></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"> 015/01/05 14:24:13 [error] 22560#0: *5 no resolver defined to resolve ... <br> <br> Seems like nginx is not falling back to the system DNS resolver in case the 'resolver' directive is not used. Isn't this incorrect behaviour ? <br></blockquote></div><div><br>==<br>events {} <br>http {<br>  server {<br>    listen 8080;<br>    location /one {<br>      proxy_pass http://www.example.com;<br>    }<br>  }<br>}<br>==<br><br>Works for me.<br><br>What config file shows the problem that you report?<br><br>(If the above fails for you, then it may be worth examining external parts.)<br><br>        f<br>-- <br>Francis Daly        francis@daoine.org<br><br>_______________________________________________<br>nginx mailing list<br>nginx@nginx.org<br>http://mailman.nginx.org/mailman/listinfo/nginx<br></div></div></body></html>