summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/dnsutil.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipapython/dnsutil.py b/ipapython/dnsutil.py
index 3602d22cd..d7841fe25 100644
--- a/ipapython/dnsutil.py
+++ b/ipapython/dnsutil.py
@@ -62,6 +62,9 @@ class DNSName(dns.name.Name):
#method named by RFC 3490 and python standard library
return str(self).decode('ascii') # must be unicode string
+ def canonicalize(self):
+ return DNSName(super(DNSName, self).canonicalize())
+
def concatenate(self, other):
return DNSName(super(DNSName, self).concatenate(other))