add set_hosts to client

Allow client callers to change the set of hosts used by the client