code: func (fw *Framework) TrySrvLookup(names []string, defaultSrv srvcache.Server) (srvcache.Server, error) {
  	if !fw.Config.Choria.UseSRVRecords {
  		return defaultSrv, nil
  	}
  
  	for _, q := range names {
  		a, err := fw.QuerySrvRecords([]string{q})
  		if err == nil {
  			log.Infof("Found %s:%d from %s SRV lookups", a[0].Host, a[0].Port, strings.Join(names, ", "))
  
  			return a[0], nil
  		}
  	}
  
  	log.Debugf("Could not find SRV records for %s, returning defaults %s:%d", strings.Join(names, ", "), defaultSrv.Host, defaultSrv.Port)
  
  	return defaultSrv, nil
  }
docs: // TrySrvLookup will attempt to lookup a series of names returning the first found
  // if SRV lookups are disabled or nothing is found the default will be returned