Only vlan Server IPs showing in client query list

Expected Behaviour:

Show all client device IPs across vlans

  • Latest Pihole release
  • Raspberry Pi 5

Actual Behaviour:

Solely the Vlan server IPs are showing in the client query list

Background
I have a (new) Ubiquiti setup with multiple vlans and added Pihole purely as a DNS server. I'm pretty new to all of this so bear with me!

The Pihole is on its own vlan with access from client vlans ie "Trusted" and "IoT" and client devices are accessing the web OK. The Pihole vlan is set to allow access to all vlans only with the specific Pihole IP.
The UGC Ultra network connection is set to point at the Pihole IP for DNS requests with unknown DNS servers refused.
DHCP is all handled within the UGC Ultra and I don't want to change to the Pi for that (due to a lot of heartache and an extreme learning curve for an old boy getting the network set up!)

Currently I have Pihole set to 'Respond only to interface' and
'Never forward non-FQDN' is OFF
'Never forward reverse lookups' is ON

To attempt to get conditional forwarding I have configured 'true; with the DNS, Trusted and IoT subnets and hosts as per the info box.

What else do I need to resolve?

Usually this is caused because your router/gateway is set to use Pihole for DNS, and the LAN clients are using the gateway (or "Auto") for DNS; all DNS queries go to the gateway, and the gateway queries Pihole.
To correct this, go to Settings in your Unifi Network Controller interface, then Networks, pick one of your client VLANs and scroll down to DHCP Service Management. Then click "Show Options."
You'll see the LAN DNS Server settings , and it is probably set to Auto or maybe the IP of the gateway is specified. Change this to the IP of your Pihole.

Side note: you may find you don't want to see all the gateway traffic on your Pihole (it's quite chatty). You can make the Gateway/router use a public or ISP DNS and still have the LAN clients use Pihole.

1 Like

nprampage- Many thanks as that worked! Bit of a buried setting.

Unfortunately I tried to update gravity and now I get 'DNS resolution is currently unavailable waiting until available...'

Following an earlier YT video on setting up Pihole I set my internet connection to point to the Pihole internal IP for DNS, but experimenting and turning this back to Auto allowed an update of gravity. What should the setting be on the internet connection for DNS?
Thanks again- support from groups like this is always friendly and invaluable.

For my UDM-Pro and UDM-SE setups, I let the Internet connection use a public DNS (9.9.9.9) and Pihole for all my VLANs. I'm not really concerned about the Unifi devices "phoning home" so I don't worry about sending them through Pihole (cuts down on log chatter as well).

Auto should be fine for the Internet connection as well, since that would typically use whatever the ISP provides (assuming it's a DHCP connection).

Thanks for the info- maybe I was a little too enthusiastic but I'll set the UGC Ultra to the auto DNS and hopefully this will complete the issue Thanks again for the advice!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.