Do you want to restart delivery to instances that had some technical difficulties a while ago but are now back online?
Don't feel like trawling through 50+ pages of dead domains and testing them all manually?
I have a script for you: https://codeberg.org/GunChleoc/mastodon-scripts/src/branch/main/server_scripts
It uses cURL to check if the domain is still reachable and also checks if it has any account relationships, then either purges it or adds it to a list for manual action via the Moderation UI.