def reverseNameFromIPv6Address(address):
 fullHex = ''.join((('%02x' % (ord(c),)) for c in socket.inet_pton(socket.AF_INET6, address)))
 tokens = (list(reversed(fullHex)) + ['ip6', 'arpa', ''])
 return '.'.join(tokens)

def reverseNameFromIPv6Address ( address ) : fullHex = '' . join ( ( ( '%02x' % ( ord ( c ) , ) ) for c in socket . inet_pton ( socket . AF_INET6 , address ) ) ) tokens = ( list ( reversed ( fullHex ) ) + [ 'ip6' , 'arpa' , '' ] ) return '.' . join ( tokens )
return a reverse domain name for the given ipv6 address .