update allowed_hosts.