code: def atlasdb_get_zonefiles_by_hash(zonefile_hash, block_height=None, con=None, path=None):
      
      with AtlasDBOpen(con=con, path=path) as dbcon:
  
          sql = 'SELECT * FROM zonefiles WHERE zonefile_hash = ?'
          args = (zonefile_hash,)
  
          if block_height:
              sql += ' AND block_height = ?'
              args += (block_height,)
  
          sql += ' ORDER BY inv_index;'
  
          cur = dbcon.cursor()
          res = atlasdb_query_execute(cur, sql, args)
  
          ret = []
          for zfinfo in res:
              row = {}
              row.update(zfinfo)
              ret.append(row)
  
          if len(ret) == 0:
              return None
  
          return ret
docs: Find all instances of this zone file in the atlasdb.
      Optionally filter on block height
  
      Returns [{'name': ..., 'zonefile_hash': ..., 'txid': ..., 'inv_index': ..., 'block_height': ..., 'present': ..., 'tried_storage': ...}], in blockchain order
      Returns None if the zone file is not in the db, or if block_height is set, return None if the zone file is not at this block height.