Bring back code that looks up hostid for export, and hostname updates.