Return a dns.name.Name
This commit is contained in:
parent
abb32c7790
commit
e0b0a25638
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def reverse_zone(network):
|
||||||
|
|
||||||
reversed_zone = ".".join(splitted)
|
reversed_zone = ".".join(splitted)
|
||||||
|
|
||||||
return reversed_zone
|
return dns.name.from_text(reversed_zone)
|
||||||
|
|
||||||
|
|
||||||
net1 = ipaddress.IPv4Network("10.128.12.0/24")
|
net1 = ipaddress.IPv4Network("10.128.12.0/24")
|
||||||
|
|
Loading…
Reference in a new issue