Docker internal network making requests

Hi,

I installed PiHole in a docker system, with a dedicated docker network.
Now, mostly all of the containers get recognized as container-name.pihole in the query logs, but I get a lot of queries from the docker internal network's gateway itself.

How can I debug/fix this, to get the container's proper name registered? Would that be the container_name: tag in the docker compose files?

Thank you.

Docker's internal gateway is tied to its internal network rather than a specific container.

If you'd want to tag that IP with a name, you could create a Local DNS record within Pi-hole, but note that you would need to re-add it whenever Docker would decide to use a different IP range for its internal network.

That's not a problem, I declared the gateway in the network creation.

My problem is: why is docker's gateway spamming with requests, always for the same address (it's always the top client for requests)?
How can I debug it?

image

image

Found the solution adding Dozzle to the stack and doing proper log analisys.
I had an Alertmanager container with wrong DNS settings (it was not poitend to pihole), and running many tries to send mail notifications.

Fixed both the DNS setting and the alert setting, it's all working now.

Thank you very much for your time.