How to Add Another Network Interface to PiHole
pihole does not allow you to use multiple network interfaces through the UI.
your only option is to select the permit all origins options
there's a bunch of workarounds online that don't work but here's one that does.
get a list of your network interfaces using by running the command below
cat /etc/network/interfaces
this will get you a response similar to the one below where you have two interfaces, named eth0 and net1. you want to make a note of these names
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.10.50/24
gateway 192.168.10.1
auto net1
iface net1 inet static
address 192.168.0.51/24
gateway 192.168.0.1
then run the command below to open an editor where you want to add each of the interfaces we noted above
nano /etc/dnsmasq.d/99-interfaces.conf
interface=eth0
interface=net1
save file and restart your pihole instance – you should have pihole serving dns requests to both of your interfaces.