dns_zone: make rname relative to zone origin
This commit is contained in:
parent
f321b12d2f
commit
2744b3b512
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue