This is a script linked in this RIPE Labs article
To execute it, you will need to download this file which is a daily dump of all the RIPE-NCC domain objects and decompress it at the root of the project.
wget https://ftp.ripe.net/ripe/dbase/split/ripe.db.domain.gz
gunzip ripe.db.domain.gz
virtualenv -p python3 venv
source venv/bin/activate
pip install requirements.txt
python main.py
For more information about your zone, you can check zonemaster