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:
parent
450ab7d57f
commit
5f5f2380fc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue