'Create a new domain entry, and return an object that wraps it.'

@classmethod
def create_domain(cls, lobj, domain):

    entry = cls._get_tuple_for_domain(lobj, domain)
    if entry:
        raise exception.FloatingIpDNSExists(name=domain, domain='')
    newdn = ('dc=%s,%s' % (domain, CONF.ldap_dns_base_dn))
    attrs = {'objectClass': ['domainrelatedobject', 'dnsdomain', 'domain', 'dcobject', 'top'], 'sOARecord': [cls._soa()], 'associatedDomain': [domain], 'dc': [domain]}
    lobj.add_s(newdn, create_modlist(attrs))
    return DomainEntry(lobj, domain)
