added fix to ipv6 reverse zone export
This commit is contained in:
1 parent
90230ffd39
commit
f6247c88e8
1 file changed
+1
-1
+1
-1
@@ -251,7 +251,7 @@ class Ip6Subnet(models.Model):
|
||||
|
||||
ip = ipaddr.IPv6Address(self.network + addr.address)
|
||||
ip = ".".join(ip.exploded.replace(":","")[16:])[::-1]
|
||||
content += "%s\tPTR\t%s\n" % (ip, hostname)
|
||||
content += "%s\tPTR\t%s.\n" % (ip, hostname)
|
||||
|
||||
# addr = ipaddr.IPv6Address("%s%s" % (interface.
|
||||
|
||||
|
||||
Reference in new issue
Block a user