code: func (d *dynProviderState) buildLinkToRecord(ep *endpoint.Endpoint) string {
  	if ep == nil {
  		return ""
  	}
  	var matchingZone = ""
  	for _, zone := range d.ZoneIDFilter.zoneIDs {
  		if strings.HasSuffix(ep.DNSName, zone) {
  			matchingZone = zone
  			break
  		}
  	}
  
  	if matchingZone == "" {
  		// no matching zone, ignore
  		return ""
  	}
  
  	if !d.DomainFilter.Match(ep.DNSName) {
  		// no matching domain, ignore
  		return ""
  	}
  
  	return fmt.Sprintf("%sRecord/%s/%s/", ep.RecordType, matchingZone, ep.DNSName)
  }
docs: // buildLinkToRecord build a resource link. The symmetry of the dyn API is used to save
  // switch-case boilerplate.
  // Empty response means the endpoint is not mappable to a records link: either because the fqdn
  // is not matched by the domainFilter or it is in the wrong zone