fixed IPv6 display in the overview table

This commit is contained in:
Fabian Faessler 2013-09-29 20:45:55 +02:00
parent a4e3ab4e58
commit e1cad04b1e

View File

@ -87,7 +87,7 @@ class Host(models.Model):
def getIPv6(self): def getIPv6(self):
try: try:
return dnstools.query_ns(self.get_fqdn(), 'A') return dnstools.query_ns(self.get_fqdn(), 'AAAA')
except dns.resolver.NXDOMAIN: except dns.resolver.NXDOMAIN:
return '' return ''