]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/iterate: ignore out-of-bailiwick NSs for positive answers
authorMarek Vavrusa <marek@vavrusa.com>
Tue, 19 Jan 2016 20:27:23 +0000 (12:27 -0800)
committerMarek Vavrusa <marek@vavrusa.com>
Tue, 19 Jan 2016 20:27:23 +0000 (12:27 -0800)
commit2800e375a79db9d35ffeaaa2e6e612c4345475f2
tree77fbd44aa6243116515fa9f0705382a912bc8304
parente110f97403818b8c4154445ae275ca3946285bd0
lib/iterate: ignore out-of-bailiwick NSs for positive answers

there are broken resolution chains where a zone cut is advertised,
but it doesn't exist and the final NS answers from its parent's
zone cut, which is an attempt to escape bailiwick

example:

resolving A ab.cd.ef
NS ef responds:
 - ab.cd.ef NS X ; adverises ab.cd.ef zone cut
X responds:
 - A ab.cd.ef A 1.2.3.4
 - cd.ef NS X ; escapes previously advertised cut

on the other hand, it is important to fail early for referrals as
it signifies a lame answer
lib/layer/iterate.c