format domain's package codes