DNS problems on one server after migration

Here’s what I did to fix the issue:

get a .local domain
move all apps to the .local domain
make sure you have your domain recovery password, if not create a new one in the interface
remove the domain and any of it’s sub-domains.
5.add a new domain with the same name as your old one (as I wanted to keep the name)
6.renew your let’s encrypt certificate

enjoy your recovered access to your server.

Good luck