mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
Compile fixes and make it work
This commit is contained in:
@@ -136,6 +136,8 @@ var exernalTestCases = []test.Case{
|
||||
Qname: "external.example.org.", Qtype: dns.TypeA,
|
||||
Answer: []dns.RR{
|
||||
test.CNAME("external.example.org. 1800 CNAME www.example.net."),
|
||||
// magic 303 TTL that says: don't check TTL.
|
||||
test.A("www.example.net. 303 IN A 93.184.216.34"),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -339,10 +339,12 @@ func cnameForType(targets []dns.RR, origQtype uint16) []dns.RR {
|
||||
|
||||
func (z *Zone) externalLookup(state request.Request, target string, qtype uint16) []dns.RR {
|
||||
m, e := z.Proxy.Lookup(state, target, qtype)
|
||||
if e != nil || m == nil {
|
||||
if e != nil {
|
||||
println(e.Error())
|
||||
// TODO(miek): debugMsg for this as well? Log?
|
||||
return nil
|
||||
}
|
||||
println(m.String())
|
||||
return m.Answer
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user