- Replace the desired target domain, and the command that you want to run when address changes.
- Install dependencies dns, dns.resolver, time, os
- Run the script and be happy.
- If you can't quit use pkill -f python-script-name.py
NOTE: I highly suggest you to run this script for example in a screen session.