Re: Resolver not working as expected

2018-08-29 Thread Maxim Dounin
Hello! On Wed, Aug 29, 2018 at 12:25:37PM +0530, Sharan J wrote: > But, if I remove all the DNS servers from my resolv.conf then, the > nameserver configured by the "resolver" directive is been used while > parsing the configuration. Is this an expected behavior? This depends on your system

Re: Resolver not working as expected

2018-08-29 Thread Sharan J
Hi, Thanks for the response :) But, if I remove all the DNS servers from my resolv.conf then, the nameserver configured by the "resolver" directive is been used while parsing the configuration. Is this an expected behavior? Thanks, Shanthu On Mon, Aug 27, 2018 at 7:00 PM Maxim Dounin wrote:

Re: Resolver not working as expected

2018-08-28 Thread Steve Wilson
On 27/08/2018 14:30, Maxim Dounin wrote: Hello! On Mon, Aug 27, 2018 at 06:56:01PM +0530, Sharan J wrote: Hi, Sample conf: http{ resolver x.x.x.x; server { server_name _; location / { proxy_pass http://somedomain.com; } } I have nameservers configured in my

Re: Resolver not working as expected

2018-08-27 Thread Maxim Dounin
Hello! On Mon, Aug 27, 2018 at 06:56:01PM +0530, Sharan J wrote: > Hi, > > Sample conf: > > http{ > resolver x.x.x.x; > server { > server_name _; > location / { > proxy_pass http://somedomain.com; > } > } > > I have nameservers configured in my resolv.conf.

Resolver not working as expected

2018-08-27 Thread Sharan J
Hi, Sample conf: http{ resolver x.x.x.x; server { server_name _; location / { proxy_pass http://somedomain.com; } } I have nameservers configured in my resolv.conf. But, somedomain.com will be configured in x.x.x.x DNS server only. So, I have specified resolver