Automatic hostfile generation/removal