Whenever I set my routers dns towards my pi-hole, I lose my internet connection.
And when I try using ''nslookup google.com" it'll say that it can't find the server.
Details about my system:
I'm using TrueNas Scale and installed pi-hole as an app, though I am pretty new to having my own homelab, I'm trying to learn more stuff about all this.
I'm still using my router (zyxel vmg8825-t50) as DHCP
What I have changed since installing Pi-hole:
I've tried reinstalling pi-hole with different settings I found across numerous of different guides to installing pi-hole.
I've played with the routers firewall settings with no success though honestly, I'm not the brightest I might've looked over something.
You seem to be a running your Pi-hole in a Docker container?
If that would be true, please consider to set the recommended FTLCONF_LOCAL_IPV4 environment variable.
Run from a client that you expect to use Pi-hole for DNS, what's the output of the following commands?
nslookup pi.hole
nslookup flurry.com
Please share the complete outpout, preferably as text.
Commonly, Pi-hole would not require any changes in your router's firewall.
In case you've openened them, make sure that inbound ports 53 and 80 are closed for traffic on your router.
For a firewall potentially running on the machine hosting Pi-hole, refer to Pi-hole's documentation on required ports and related firewall examples.
What machine is 192.168.1.93?
Is that your Pi-hole host?
Then your output would suggest that those DNS requests were using the correct IP, but never made it to Pi-hole.
You should be able to confirm this by inspecting Pi-hole's Query Log:
If those nslookups do not result in respective log entries, then Pi-hole never received them.
This would in turn suggest that something is blocking those DNS requests.
Check your host machine's firewall as well as your Pi-hole's VM/Docker configuration to allow access to Pi-hole's ports. Please refer to respective links as provided in my previous post.
I think I've opened up those ports now but with no success
edit: nc –zv 192.168.1.93 53
I looked at the ports and they all seem to be open, except for 53.
Though I'm not sure how to open this one, I thought I did but as we can see it didn't work.
There is nothing that listens on port 53 on your host machine.
Whatever is hosting your Pi-hole (VM/Docker/Kubernetes/...), you'd need to configure it to listen on its outward facing port 53 (UDP/TCP) and connect those to your Pi-hole environment's internal port 53. Similar would apply to Pi-hole's other required ports, if you'd want to access Pi-hole's corresponding services.
Sorry, I can't provide more detailed help for that.
Note that TrueNAS Scale is not an OS supported by Pi-hole, and neither would the Pi-hole team provide an app for that platform.
You'd have to consult respective documentation and support for TrueNas Scale.
If you indeed installed some kind of Pi-hole app for TrueNAS, you also should consider to contact its respective maintainers for support.