Fixed up domain handling across all components.

A host can only have one subdomain.