Return a dns.name.Name

This commit is contained in:
otthorn 2021-04-18 00:22:28 +02:00
parent abb32c7790
commit e0b0a25638

View file

@ -19,7 +19,7 @@ def reverse_zone(network):
reversed_zone = ".".join(splitted)
return reversed_zone
return dns.name.from_text(reversed_zone)
net1 = ipaddress.IPv4Network("10.128.12.0/24")