generate hosts file