Improve conformance with DNS behavior
This commit is contained in:
parent
b79df4bf1d
commit
07da2a1269
6 changed files with 96 additions and 50 deletions
|
|
@ -195,8 +195,8 @@ func TestFullZone(t *testing.T) {
|
|||
assertRecord(t, res.Answer[1].Record, "A", 3600, "203.0.113.24")
|
||||
})
|
||||
|
||||
t.Run("Lookup partner.example.com", func(t *testing.T) {
|
||||
res, ok := zFull.Lookup("partner.example.com")
|
||||
t.Run("Lookup partner.example.com NS", func(t *testing.T) {
|
||||
res, ok := zFull.LookupType("partner.example.com", "NS")
|
||||
assertOk(t, ok)
|
||||
assertRecordCount(t, res, 2)
|
||||
assertRecord(t, res.Answer[0].Record, "NS", 3600, "ns1.example.org")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue