mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
@@ -15,7 +15,7 @@ const (
|
||||
NoError Type = iota
|
||||
// NameError is a NXDOMAIN in header, SOA in auth.
|
||||
NameError
|
||||
// ServerError is a set of errors we want to cache, for now it containers SERVFAIL and NOTIMPL.
|
||||
// ServerError is a set of errors we want to cache, for now it contains SERVFAIL and NOTIMPL.
|
||||
ServerError
|
||||
// NoData indicates name found, but not the type: NOERROR in header, SOA in auth.
|
||||
NoData
|
||||
|
||||
@@ -49,7 +49,7 @@ func TestTypifyRRSIG(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestTypifyImpossible(t *testing.T) {
|
||||
// create impossible message that denies it's own existence
|
||||
// create impossible message that denies its own existence
|
||||
m := new(dns.Msg)
|
||||
m.SetQuestion("bar.www.example.org.", dns.TypeAAAA)
|
||||
m.Rcode = dns.RcodeNameError // name does not exist
|
||||
|
||||
Reference in New Issue
Block a user