handle blank name and namespaces (#2042)

This commit is contained in:
Chris O'Haver 2018-08-27 14:41:04 -04:00 committed by Miek Gieben
parent 444472891f
commit e6ef320d13
4 changed files with 33 additions and 6 deletions

View file

@ -323,6 +323,13 @@ var dnsTestCases = []test.Case{
test.SOA("cluster.local. 303 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"),
},
},
{
Qname: "testns.svc.cluster.local.", Qtype: dns.TypeA,
Rcode: dns.RcodeSuccess,
Ns: []dns.RR{
test.SOA("cluster.local. 303 IN SOA ns.dns.cluster.local. hostmaster.cluster.local. 1499347823 7200 1800 86400 60"),
},
},
}
func TestServeDNS(t *testing.T) {