unifi-utilities / unifios-utilities

A collection of enhancements for UnifiOS based devices
GNU General Public License v3.0
3.86k stars 415 forks source link

Pihole, conditional forwarding not working. #30

Closed jinie closed 4 years ago

jinie commented 4 years ago

Thanks for this excellent project. It adds a few missing parts to the UDM 👍

I’ve setup pihole on VLAN 100 (172.16.100.0/24), and I have dns lookups working from the client computers. Pihole also resolves addresses using cloudflare, but I cannot seem to get conditional forwarding working.

I have 6 different VLANs, and no matter which address I try to do nslookup to from the pihole container I get timeouts. Lookups to an external (DMZ) pihole works from the container.

I’ve fiddled around with firewall rules all day, and even if I allow all traffic to/from the dns vlan it still isn’t allowed to connect. No DNS appears to be listening on the gateway IP either (172.160.100.1).

I can resolve just fine from one vlan using the gateway address on another vlan, just not from the pihole container.

Am I being locked out by dnsmasq config ?

Allram commented 4 years ago

Same problem here with UDMP. 4 VLAN and conditional forwarding is not working.

boostchicken commented 4 years ago

Did you check the latest 10-dns.sh? Please use that one, it should fix it.

https://github.com/boostchicken/udm-utilities/blob/1f82b5c2c4011c3bb8ea0f5273c46ca1a5bb55e2/dns-common/on_boot.d/10-dns.sh#L72-L76

jtychu commented 4 years ago

I gave the latest a try and it appears to be working. Thanks!