getAllHosts returns hosts