Some tiny changes and new benchmark test function (#136)

This commit is contained in:
Miek Gieben 2016-04-26 20:45:29 +01:00
parent 1aa1a92198
commit efd5135ee3
4 changed files with 45 additions and 4 deletions

View file

@ -2,6 +2,7 @@ package cache
import (
"log"
"strings"
"time"
"github.com/miekg/coredns/middleware"
@ -28,7 +29,7 @@ func cacheKey(m *dns.Msg, t middleware.MsgType, do bool) string {
}
qtype := m.Question[0].Qtype
qname := middleware.Name(m.Question[0].Name).Normalize()
qname := strings.ToLower(m.Question[0].Name)
switch t {
case middleware.Success:
fallthrough