plugin/cache: add minttl test (#1141)

See https://github.com/kubernetes/kubernetes/pull/53604, explicitaly add
test to make sure we do the right thing.
This commit is contained in:
Miek Gieben
2017-10-10 18:30:14 +02:00
committed by GitHub
parent 427aed6f5b
commit 7a64d1bbc3
2 changed files with 42 additions and 2 deletions

View File

@@ -99,8 +99,6 @@ func Typify(m *dns.Msg, t time.Time) (Type, *dns.OPT) {
}
}
// Check length of different sections, and drop stuff that is just to large? TODO(miek).
if soa && m.Rcode == dns.RcodeSuccess {
return NoData, opt
}