Must handle possibility of zero length domains.