Please follow the below template, it will help us to help you!
Expected Behaviour:
Not setting the default dns server in raspbian to itself but if it does make it work.
Actual Behaviour:
It repleces the dns that i set in resolv.conf with 127.0.0.1 (localhost) and i don't know how to stop that
Debug Token:
Should i put the hole log thing here?
Can someone help me with setting my own dns because if it is setting the dns to 127.0.0.1 i can't do any dns requests, i have to manually set it to 192.168.178.1 (my router) i think every 2-5 hours
After you generate the debug log and upload it when asked, you will receive an alphanumeric character string (token). Post that token here and we will be able to find your log on the server.
Setting the loopback address in /etc/resolv.conf makes it so the Pi uses Pi-Hole as its DNS service. This is the normal and expected configuration. If you are having Pi-Hole issues with failure to respond to DNS queries, this indicates a Pi-Hole problem that you are bypassing by changing /etc/resolv.conf.
Your debug log shows that Pi-Hole is working, at least at the time when you generated the log.
*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] a.collective-media.net.49481.9362.302br.net is 0.0.0.0 via localhost (127.0.0.1)
[✓] a.collective-media.net.49481.9362.302br.net is 0.0.0.0 via Pi-hole (192.168.178.29)
[✓] doubleclick.com is 172.217.17.46 via a remote, public DNS server (8.8.8.8)
When Pi-Hole fails to respond and you change /etc/resolv.conf to your router IP, how is the IP in that file being set back to the loopback address? Are you doing that manually, restarting Pi-Hole, etc.?
Given that your install does not appear to be clean, i would save your custom settings with teleporter, do a complete removal of Pi-Hole with pihole uninstall, then do a fresh install of Pi-Hole.