Update prefered_hosts in server