summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/dns.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/dns.py')
-rw-r--r--ipalib/plugins/dns.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index ff21c694..e0a5a151 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -1528,7 +1528,7 @@ def check_ns_rec_resolvable(zone, name):
def dns_container_exists(ldap):
try:
- ldap.get_entry(api.env.container_dns, [])
+ ldap.get_entry(DN(api.env.container_dns, api.env.basedn), [])
except errors.NotFound:
return False
return True
@@ -2954,7 +2954,7 @@ class dnsconfig(LDAPObject):
)
def get_dn(self, *keys, **kwargs):
- return api.env.container_dns
+ return DN(api.env.container_dns, api.env.basedn)
def get_dnsconfig(self, ldap):
(dn, entry) = ldap.get_entry(self.get_dn(), None,