refine hostid resolver