Doppelte Forward Lookup Zone durch Erstellen eines @ Alias Records

Hallo,

ich habe blöderweise einen @ Record innerhalb einer Forward Zone eingetragen. Nun habe ich 2 identische Forward Zonen, die sich nicht mehr löschen lassen.

Interner Server-Fehler in "udm/query (dns/dns)".
Request: udm/query (dns/dns)

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/notifier/threads.py", line 80, in _run
    result = self._function()
  File "/usr/lib/python3/dist-packages/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 597, in _thread
    _superordinate, mod = self.get_obj_module(request.flavor, superordinate)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/__init__.py", line 230, in get_obj_module
    return get_obj_module(flavor, ldap_dn, self.get_ldap_connection()[0])
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 1222, in get_obj_module
    return module.get(ldap_dn, attributes=attr), module
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 731, in get
    UDM_Error(exc).reraise()
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 366, in reraise
    six.reraise(self.__class__, self, self.exc_info[2])
  File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib/python3/dist-packages/univention/management/console/modules/udm/udm_ldap.py", line 719, in get
    obj = self.module.object(None, ldap_connection, None, ldap_dn, superordinate, attributes=attributes)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/dns/alias.py", line 119, in __init__
    univention.admin.handlers.simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes=attributes)
  File "/usr/lib/python3/dist-packages/univention/admin/handlers/__init__.py", line 227, in __init__
    raise univention.admin.uexceptions.wrongObjectType('%s is not recognized as %s.' % (self.dn, self.module))
univention.management.console.modules.udm.udm_ldap.UDM_Error: Der Objekttyp dieses Objekts unterscheided sich von dem angegebenen Objekttyp. relativeDomainName=@,zoneName=DOPPELTE_ZONE,cn=dns,dc=DOMAIN,dc=de is not recognized as dns/alias.

Die S4-LDAP Synchronisierungsfehler habe ich bereits durch das entsprechende Skript gelöscht. Wie kann ich nun die Zone(n) löschen? In der GUI bekomme ich es nicht hin.

In der CLI habe ich folgendes abgesetzt und auch die Meldung erhalten, dass 1 record gelöscht wurde. Dennoch ist der fehlerhafte Eintrag immer noch vorhanden.

ldbdel -H /var/lib/samba/private/sam.ldb "DC=@,DC=DOPPELTE_ZONE,CN=MicrosoftDNS,DC=DomainDnsZones,DC=DOMAIN,DC=de"

Folgender Befehl hat den fehlerhaften Record dann gelöscht.

ldapdelete -x -D "cn=admin,$(ucr get ldap/base)" -y /etc/ldap.secret "relativeDomainName=@,zoneName=DOPPELTE_ZONE,cn=dns,dc=DOMAIN,dc=de"

Danach konnte ich dann die Zone mit Hilfe der GUI löschen und nochmal sauber neu aufsetzen. Es scheint nun ordnungsgemäß zu funktionieren.

Mastodon