Skip to content

Commit

Permalink
Support mIxedCase queries and zone keys
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Aug 28, 2012
1 parent 02ddd28 commit bbcbb65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func setupZoneData(data map[string]interface{}, Zone *Zone) {

//log.Printf("K %s V %s TYPE-V %T\n", dk, dv, dv)

dk = strings.ToLower(dk)
Zone.Labels[dk] = new(Label)
label := Zone.Labels[dk]
label.Label = dk
Expand Down
2 changes: 1 addition & 1 deletion serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func getQuestionName(z *Zone, req *dns.Msg) string {
lx := dns.SplitLabels(req.Question[0].Name)
ql := lx[0 : len(lx)-z.LenLabels]
return strings.Join(ql, ".")
return strings.ToLower(strings.Join(ql, "."))
}

var geoIP = setupGeoIP()
Expand Down

0 comments on commit bbcbb65

Please sign in to comment.