code: func ValidateDNSSearch(val string) (string, error) {
  	if val = strings.Trim(val, " "); val == "." {
  		return val, nil
  	}
  	return validateDomain(val)
  }
docs: // ValidateDNSSearch validates domain for resolvconf search configuration.
  // A zero length domain is represented by a dot (.).