Pi-Hole config for Windows Server 2019 Domain Controller

Hello everyone,

Recently, I have setup successfully Pi-Hole on Ubuntu 20.04 LTS. Tested and worked fine with individual PC.
However, I want to implement the Pi-hole server on the Windows Server 2019, running as Active Directory and Domain Controller. Under this DC, we have 5 PC joined its domain. My goal is to setup Pi-hole on the DC and hopefully, it could block the Ads for the server and 5 PC which joined its domain
Any idea how I can do this?
Thank you very much

1 Like

You mean actually running Pi-hole on the DC itself? I don't think you'll be able to do that without some virtualization or docker.

Sorry for the confusion.
No, I actually want to config the DC to use Pi-Hole as DNS server so that all joined computers can have the Ads blocked from the server level.
I have tried the configuration of DNS forwarders but somehow, the Ads are in visible on the joined computers...
Any idea?

Can you provide some more details of what you have configured and where you have configured it?

Can you show the ipconfig /all DNS servers output on a client? And pihole -d? Does nslookup pi.hole work? And nslookup doubleclick.net?

Nevermind, I have figured this out below

  • Open DNS Manager from your Windows server
  • Right-click on the machine from the left panel, select "Properties"
  • Go to "Forwarder" tab and add your Pi-Hole IP address
  • Deselect "Root hints" option right below
  • (Optional, Save it first) Delete the list of the servers in the "Root Hints" tab

That's about it. All domain-joined computer can now benefit from Ad-blocked features from Pi-Hole server.

Hope it helps someone like me :slight_smile:

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