]> git.kaiwu.me - nginx.git/commit
Resolver: improved PTR response processing.
authorRuslan Ermilov <ru@nginx.com>
Thu, 17 Dec 2015 14:21:16 +0000 (17:21 +0300)
committerRuslan Ermilov <ru@nginx.com>
Thu, 17 Dec 2015 14:21:16 +0000 (17:21 +0300)
commitbf269cbc555798f0db04cad67cad130bca46010d
tree1e55cfaf5c6f757e2a82348632a30c3e8a33284d
parent06806aa0011b1562594574dff340f3b711885d7c
Resolver: improved PTR response processing.

The previous code only parsed the first answer, without checking its
type, and required a compressed RR name.

The new code checks the RR type, supports responses with multiple
answers, and doesn't require the RR name to be compressed.

This has a side effect in limited support of CNAME.  If a response
includes both CNAME and PTR RRs, like when recursion is enabled on
the server, PTR RR is handled.

Full CNAME support in PTR response is not implemented in this change.
src/core/ngx_resolver.c