dns_zone: make rname relative to zone origin

This commit is contained in:
jeltz 2022-08-18 03:47:23 +02:00
parent f321b12d2f
commit 2744b3b512
Signed by: jeltz
GPG key ID: 800882B66C0C3326

View file

@ -32,7 +32,9 @@ class RName(dns.name.Name):
raise ValueError( raise ValueError(
"Invalid e-mail address format: {}".format(address) "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: class MultiRecords: