# Pihole with ad controllers

**URL:** <https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050>\
**Category:** Community Help\
**Created:** [October 5, 2020, 3:21am UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050 "2020-10-05T03:21:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pellle87](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/pellle87/32/18956_2.png) [@pellle87](https://discourse.pi-hole.net/u/pellle87)\
**Post date:** [October 5, 2020, 3:21am UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/1 "2020-10-05T03:21:48Z")

</div>

Hi,

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?

---

<div class="post-metadata">

**Author:** ![damajor](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/damajor/32/18939_2.png) [@damajor](https://discourse.pi-hole.net/u/damajor)\
**Post date:** [October 5, 2020, 9:31am UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/2 "2020-10-05T09:31:27Z")

</div>

Hi,

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.

Hope that can help.

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [October 5, 2020, 4:52pm UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/3 "2020-10-05T16:52:41Z")

</div>

> [@damajor](#):
>
> If I were you I would setup an interface on each VLAN on your Pi-Hole server ......

Pointers below:

> [@Pi-Hole VLAN advice using 05-custom.conf or define VLAN interfaces](https://discourse.pi-hole.net/t/pi-hole-vlan-advice-using-05-custom-conf-or-define-vlan-interfaces/38982):
>
> Hi, I have 2 Pi-Hole's running on a Rasperry Pi 4 with unbound as resolver. My network consist of 8 VLANS who are using Pi-Hole as their DNS, I have also some rules in my firewall to catch services from using another dns then Pi-Hole, all working fine. To see the devices in my Pi-hole statisctics I use a 05.-custom.conf file, who looks like this: server=/Kopernikus-Native.lan/10.10.1.1 server=/Kopernikus-Trusted.lan/10.10.10.1 server=/Kopernikus-Kids.lan/10.10.20.1 server=/Kopernikus-IoT.…

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [October 5, 2020, 4:54pm UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/4 "2020-10-05T16:54:38Z")

</div>

> [@pellle87](#):
>
> 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?

Dns req --\> Pi-hole --\> AD controllers

---

<div class="post-metadata">

**Author:** ![pellle87](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/pellle87/32/18956_2.png) [@pellle87](https://discourse.pi-hole.net/u/pellle87)\
**Post date:** [October 5, 2020, 5:18pm UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/5 "2020-10-05T17:18:51Z")

</div>

Thats the route i went, ad servers as upstream dns then i put records in dnsmasq so i get hostnames in the list instead of ip addresses

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [October 5, 2020, 5:23pm UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/6 "2020-10-05T17:23:21Z")

</div>

> [@pellle87](#):
>
> then i put records in dnsmasq so i get hostnames in the list instead of ip addresses

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:

[http://pi.hole/admin/settings.php?tab=dns](http://pi.hole/admin/settings.php?tab=dns)

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [October 26, 2020, 5:23pm UTC](https://discourse.pi-hole.net/t/pihole-with-ad-controllers/39050/7 "2020-10-26T17:23:22Z")

</div>

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