diff --git a/processors.go b/processors.go index 84afbf4..03b60b2 100644 --- a/processors.go +++ b/processors.go @@ -199,7 +199,7 @@ func convertAddr(addr string, q *query) ([]string, bool) { } func makeCNAME(cname string) string { - if cname[0] == '.' { + if len(cname) > 0 && cname[0] == '.' { cname = cname[1:] } return cname