diff --git a/library/dns_zone.py b/library/dns_zone.py index 899c654..2aaa26a 100755 --- a/library/dns_zone.py +++ b/library/dns_zone.py @@ -32,7 +32,9 @@ class RName(dns.name.Name): raise ValueError( "Invalid e-mail address format: {}".format(address) ) - super().__init__((local,) + dns.name.from_text(domain).labels) + super().__init__( + (local,) + dns.name.from_text(domain, origin=dns.name.empty).labels + ) class MultiRecords: