]> git.kaiwu.me - nginx.git/commit
Resolver: report SRV resolve failure if all A resolves failed.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 11 Dec 2018 16:41:22 +0000 (19:41 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 11 Dec 2018 16:41:22 +0000 (19:41 +0300)
commit8e2949e56a13405a157e05b21aa4c4a5fa468335
tree9bbdafc1a1104465b3cd428d554338d71dfff68c
parent746fba0d79c6909e9e09b4d1cb9ddbf052ab545e
Resolver: report SRV resolve failure if all A resolves failed.

Previously, if an SRV record was successfully resolved, but all of its A
records failed to resolve, NXDOMAIN was returned to the caller, which is
considered a successful resolve rather than an error.  This could result in
losing the result of a previous successful resolve by the caller.

Now NXDOMAIN is only returned if at least one A resolve completed with this
code.  Otherwise the error state of the first A resolve is returned.
src/core/ngx_resolver.c