The internet access doesn’t work when the DNS address of Pi-Hole is changed

Hello everyone. I’m using the third-party Pi-Hole v6.0.2 add-on and Home Assistant 2025.3.3. I’m having issues with internet access on my devices when I use the Home Assistant IP address as the DNS without the port 8123. I suspect this is because Home Assistant doesn’t know how to handle DNS queries and forward them to the Pi-Hole add-on. This is strange, because it worked fine with the previous version of Pi-Hole.