[server] Use updateHosts.