added ipv6 support in zone file export

This commit is contained in:
Tor Martin Slåen committed 2011-05-08 22:22:37 +02:00
1 parent ef6e8e9cf6
commit bc0958a6f0
1 file changed
+2
+2
View File
@@ -99,6 +99,8 @@ class Domain(models.Model):
host = interface.host
if interface.ip4address:
content += "%-20s\tIN\tA\t%s\n" % (host.hostname, interface.ip4address.address)
for ipv6addr in interface.ip6address_set.all():
content += "%-20s\tIN\tAAAA\t%s\n" % (host.hostname, ipv6addr.full_address())
return content