Don't reject Nscount > 0 (#868)

* Don't reject Nscount > 0

IXFR request could have a SOA RR in the NS section
RFC 1995, section 3: https://tools.ietf.org/html/rfc1995

* Only one RR in the NS section is acceptable

* Remove URL from comment
This commit is contained in:
cesarkuroiwa 2018-12-19 14:28:26 -02:00 committed by Miek Gieben
parent 450ab7d57f
commit 5f5f2380fc
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ var defaultMsgAcceptFunc = func(dh Header) MsgAcceptAction {
if dh.Ancount != 0 {
return MsgReject
}
if dh.Nscount != 0 {
// IXFR request could have one SOA RR in the NS section
// RFC 1995, section 3
if dh.Nscount > 1 {
return MsgReject
}
if dh.Arcount > 2 {