code: func NameIsDNSSubdomain(name string, prefix bool) []string {
  	if prefix {
  		name = maskTrailingDash(name)
  	}
  	return validation.IsDNS1123Subdomain(name)
  }
docs: // NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain.