add hostspec parsing to addr module