Skip to content

Commit

Permalink
Lower-case the key and CNAME record values (AWS api returns them lowe…
Browse files Browse the repository at this point in the history
…rcased)
  • Loading branch information
carlpett committed Jun 21, 2016
1 parent e3f02c0 commit a6709bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,14 @@ func main() {
continue
}

name := strings.ToLower(header.Name)
data := strings.TrimPrefix(rr.String(), header.String())
if recordType == "CNAME" {
data = strings.ToLower(data)
}

key := RecordKey{
Name: header.Name,
Name: name,
Type: recordType,
}
if rec, ok := records[key]; ok {
Expand Down

0 comments on commit a6709bf

Please sign in to comment.