From 080acaaec3582a61e64d510a82de94fc8649db26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Martin=20Sl=C3=A5en?= Date: Fri, 22 Apr 2011 18:44:48 +0200 Subject: [PATCH] fixed bug with subnet zone export. reverse dns would print entire ip, not just the past segment. --- mdb/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdb/models.py b/mdb/models.py index c0ccba5..c01996b 100644 --- a/mdb/models.py +++ b/mdb/models.py @@ -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