Implement domain_type() and domain common