I got a pretty complexed home network, 5 vlans with their own dhcp server running in my unifi controller.
I also got 2 domain controllers for my ad.
As i have set it up now: Dns req -> ad controllers -> forward to pihole. That is the problem, the only clients i see in pihole is the ad controllers.
How would i go about setting up pihole so that i can see all the clients?
I've read something about dnsmasq but i cant really find a definitive answer
my nets are:
vid 100 - srv - xx.xx.100.0/24
vid 99 - mgmt - xx.xx.99.0/24
vid 23 - iot - xx.xx.23.0/24
vid 10 - gst - xx.xx.10.0/24
vid 0 - lan - xx.xx.1.0/24
vid 77 - cctv - xx.xx.77.0/24
vid 98 - vpn - xx.xx.98.0/24
and some other lab nets for my other fw.
dcs are - xx.xx.100.2 and xx.xx.100.3
Do i simply create a file like /etc/dnsmasq.d/99-whatever.conf
and put in:
server=/domain.local/xx.xx.100.2
server=/domain.local/xx.xx.100.3
then set dhcp server to give pihole as dns? or how do i configure it?
If I were you I would setup an interface on each VLAN on your Pi-Hole server (use trunk mode or similar feature on Unify, and declare eth0.VLANID for each VLAN on your Pi-Hole).
Then I would configure each VLAN DHCP on Unify servers to advertise the IP of the Pi-Hole for each VLAN.
On Pi-Hole, make sure that you make it to listen on every interfaces.
Dont need to do that.
Just disable "Never forward non-FQDNs" and the "Never forward reverse lookups for private IP ranges" setting below so Pi-hole will ask your AD's for resolution for local records stored on the AD's: