does Pi-hole can affect the devices connected to the dietpi?

Another strange thing… Until some minutes ago from inside my network I was able to enter the dietpi with the terminal using mydomain.ddns.net.
Now I can’t do it anymore. I can access it just using the dietpi local IP…
Before this happens I disable the DMZ in my router (just to understand if this was the problem) and, when I realized I wasn’t able to access it with mydomain.ddns.net anymore, I enable again the DMZ. Despite this, I can enter it only with the local IP.
Now, using mydomain it shows me this error:

ssh: connect to host mydomain.ddns.net port 22: Operation timed out

[Processo completato]

Does this make sense?