Fix MRN-587. Forbid single-level domain.

Change-Id: I9d6a0bc1bb8cd51f3a498be96809c0d927edc4d2