]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
iterate: update zone cut when NS is authoritative for both parent and child
authorMarek Vavruša <mvavrusa@cloudflare.com>
Sun, 8 Apr 2018 01:37:55 +0000 (18:37 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Sun, 8 Apr 2018 01:45:16 +0000 (18:45 -0700)
commit614d12a59a34f9cf3c39b722d0d7023af239f899
treeba206e24d574f6292cb228a9e153cbfdb47323f0
parent001689aa244842b249e55ae3b837bbc58cf27f8a
iterate: update zone cut when NS is authoritative for both parent and child

In some cases the NS is authoritative for both parent and the child side of
the delegation (e.g. nrl.navy.mil). When it gets the query for such NS,
it can respond from the child side with an NS record in the answer and AA=1.
The resolver should update the zone cut accordingly, otherwise it would fail
validation in cases when the child-side of the delegation is insecure,
but parent side  of the delegation is secure, because the child side
would respond without DNSSEC records, and it wouldn't indicate that
the zone cut needs updating (when using minimal answers) (e.g. www.nrl.navy.mil).
lib/layer/iterate.c