Add and update hosts.