func Fqdn(name string) string {
	n := len(name)
	if n == 0 || name[n-1] == '.' {
		return name
	}
	return name + "."
}
Fqdn ensures that the name is a fqdn adding a trailing dot if necessary.
package utils
import (
	"fmt"
	"io"
	"regexp"
	"sort"
	"strings"
	"github.com/Sirupsen/logrus"
	"github.com/valyala/fasttemplate"
)
const (
	stateRecordFqdnTemplate = "external-dns-%s.%s"
)
type MetadataDnsRecord struct {
	ServiceName string
	StackName   string
	DnsRecord   DnsRecord
}
type DnsRecord struct {
	Fqdn    string
	Records []string
	Type    string
	TTL     int
}