]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
iterate: follow CNAMEs in stub mode
authorMarek Vavruša <mvavrusa@cloudflare.com>
Sat, 9 Jun 2018 04:06:01 +0000 (21:06 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
commit31ac73402a627b4b621a8c36bcc94c5b5f17f7bc
tree5d576f1e1d68f1233b4dcf976d679a22d55e4677
parent50e62cb1393cd2b0bc34a47fdd5035548f6f1183
iterate: follow CNAMEs in stub mode

There are two forwarder modes in the resolver - full forwarder,
and a stub mode. The full forwarder expects upstream to fully
solve the request (so the upstream must be a recursive resolver).

The stub forwarder mode is primarily useful for directing traffic
to a trusted resolver or authoritative (e.g. forward queries for
an internal zone). The upstream may not know the full answer to
the query, and may answer only from its authority. In that case
the resolver should follow the partially solved CNAME instead
of serving the partial answer.
lib/cache/api.c
lib/cache/peek.c
lib/layer/iterate.c
lib/resolve.c