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

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