fixed bug with subnet zone export. reverse dns would print entire ip, not just the past segment.
This commit is contained in:
1 parent
148f650b89
commit
080acaaec3
1 file changed
+1
-1
+1
-1
@@ -285,7 +285,7 @@ class Ip4Subnet(models.Model):
|
||||
(interface.host.hostname, \
|
||||
interface.domain.domain_name)
|
||||
content += "%-20s\tIN\tPTR\t%s.\n" % \
|
||||
(addr.address, hostname)
|
||||
(addr.address.split(".")[3], hostname)
|
||||
|
||||
return content
|
||||
|
||||
|
||||
Reference in new issue
Block a user