Welcome! Log In Create A New Profile

Advanced

Re: Fastcgi_pass, resolver, and validating functionality.

Maxim Dounin
December 22, 2016 12:52PM
Hello!

On Thu, Dec 22, 2016 at 11:55:00AM -0500, ahamilton9 wrote:

> Almost. It was static group in the respect that it was dynamically grabbed
> on load, but the resolver just wasn't triggering at all after that.
>
> We did not have an explicit group defined, "php" literally referred to the
> DNS name of the load balancer it was contacting. The rest of the domain was
> being taken care of by the local resolver (search domain).It looks like the
> code changed in nginx to completely rely on it's own DNS checking at some
> point rather than what the local system was reporting, which would explain
> why it suddenly stopped working after a version change when nothing else had
> been modified.

System name resolution is only used when nginx parses
configuration on startup / reconfiguration. All name resolution
during runtime uses DNS servers configured with the "resolver"
directive. And this is how it worked always, because system name resolution
is blocking and can't be used by nginx during runtime.

> We changed the line from "php:9000" to the FQDN like
> "php.internal.ourdomain.com:9000", and the nginx resolver started
> triggering. To anyone who isn't using an FQDN and stumbles upon this, try
> that first.

Changing a name to a different one just makes sure that no other
implicitly configured upstream group will interfere with the name
used.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Fastcgi_pass, resolver, and validating functionality.

ahamilton9 December 06, 2016 12:43PM

Re: Fastcgi_pass, resolver, and validating functionality.

Francis Daly December 06, 2016 03:24PM

Re: Fastcgi_pass, resolver, and validating functionality.

ahamilton9 December 07, 2016 03:39PM

Re: Fastcgi_pass, resolver, and validating functionality.

Maxim Dounin December 08, 2016 09:06AM

Re: Fastcgi_pass, resolver, and validating functionality.

ahamilton9 December 22, 2016 11:55AM

Re: Fastcgi_pass, resolver, and validating functionality.

Maxim Dounin December 22, 2016 12:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
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