fixed bug with subnet zone export. reverse dns would print entire ip, not just the past segment.

This commit is contained in:
Tor Martin Slåen committed 2011-04-22 18:44:48 +02:00
1 parent 148f650b89
commit 080acaaec3
1 file changed
+1 -1
+1 -1
View File
@@ -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