def inet_ntoa(address):
 if (len(address) != 4):
  raise dns.exception.SyntaxError
 return ('%u.%u.%u.%u' % (ord(address[0]), ord(address[1]), ord(address[2]), ord(address[3])))

def inet_ntoa ( address ) : if ( len ( address ) != 4 ) : raise dns . exception . SyntaxError return ( '%u.%u.%u.%u' % ( ord ( address [ 0 ] ) , ord ( address [ 1 ] ) , ord ( address [ 2 ] ) , ord ( address [ 3 ] ) ) )
inet_ntoa -> ip_address_string convert an ip address from 32-bit packed binary format to string format .