diff --git a/source/crd.go b/source/crd.go index 10be3fcce..31e933408 100644 --- a/source/crd.go +++ b/source/crd.go @@ -190,7 +190,10 @@ func (cs *crdSource) Endpoints(ctx context.Context) ([]*endpoint.Endpoint, error illegalTarget := false for _, target := range ep.Targets { - if strings.HasSuffix(target, ".") { + if ep.RecordType != "NAPTR" && strings.HasSuffix(target, ".") { + illegalTarget = true + break + } else if ep.RecordType == "NAPTR" && !strings.HasSuffix(target, ".") { illegalTarget = true break }