fix: add tests & fix missing soa

This commit is contained in:
David Arnold 2020-06-09 21:54:01 -05:00
parent d6daa054b5
commit 954195e4d0
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08
7 changed files with 112 additions and 43 deletions

View file

@ -266,7 +266,7 @@ func CNAMEOrder(res *dns.Msg) error {
// SortAndCheck sorts resp and the checks the header and three sections against the testcase in tc.
func SortAndCheck(resp *dns.Msg, tc Case) error {
sort.Sort(RRSet(resp.Answer))
sort.Sort(RRSet(resp.Answer))
sort.Sort(RRSet(resp.Ns))
sort.Sort(RRSet(resp.Extra))