How to redirect connected clients from Pi-Hole to other DNS

Hi - pi-hole is in and working...
...but I need to allow certain specific clients inside the LAN to be "ad-served".
How can I add specific client side IP addresses to an always allow list which pi-hole won't block?
Thanks,
dave.

You could use the Pi-hole as DHCP server and based on the MAC address of the device you want to bypass the Pi-hole, you can specify the DNS server that the device will use.

You'd have to make a /etc/dnsmasq.d/nopihole.conf file (or name it whatever you want) and add an entry like this for each device(MAC) you need.

dhcp-option=tag:nopihole,option:dns-server,8.8.8.8,1.1.1.1
dhcp-host=xx:xx:xx:xx:xx:xx,set:nopihole,MyHostname

Replace xx:xx:xx:xx:xx:xx with the MAC address of course :slight_smile:

1 Like

A simpler method is to just manually set the devices to use a different DNS server in their settings.

Thank you.

This may also be helpful:

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