  We determine the metric dimension of the annihilating-ideal graph of a local
finite commutative principal ring and a finite commutative principal ring with
two maximal ideals. We also find the bounds for the metric dimension of the
annihilating-ideal graph of an arbitrary finite commutative principal ring.
