This commit is contained in:
Miek Gieben 2012-08-04 08:08:00 -07:00
parent d0641c7cb9
commit d4c5036377
1 changed files with 1 additions and 2 deletions

View File

@ -15,14 +15,13 @@ func serve(w dns.ResponseWriter, req *dns.Msg, z *dns.Zone) {
// look up name -> yes, continue, no -> nxdomain
node := z.Find(req.Question[0].Name)
if node == nil {
log.Printf("nothing found")
m := new(dns.Msg)
m.SetRcode(req, dns.RcodeNameError)
w.Write(m)
return
}
apex := z.Find(z.Origin)
// Referral?
// Referral need support from the radix tree, successor?
// Name found, look for type, yes, answer, no
if rrs, ok := node.RR[req.Question[0].Qtype]; ok {
// Need to look at class to but... no