Hello all! I recently upgraded from a Pi Model B to a Pi3 Model B and decided that I'd have it monitor two separate VLAN's in my home network.
What I did was hardwire to one network and use wireless to connect to the other. I was able to set "listen on all interfaces" from the GUI and made an entry in dnsmasq.conf listing both addresses as listening addresses.
What I'd like to know is if there is a way to change the upstream DNS that the request is forwarded to based on either the subnet or the interface from which the request is generated. The second network is one I use for my kids and they use OpenDNS with some heavy content filtering and its not my intention to subject the other network to those same requirements.
Is this doable? If so how would I go about setting it up?
Thanks in advance!
If you are using the Pi-hole DHCP server there might be a way for you, as you could tag individual devices to use e.g. OpenDNS instead of the Pi-hole. Hence, your normale devices could still use the Pi-hole while your kids computers would be redirected to OpenDNS (the queries won't even touch the Pi-hole's dnsmasq server).
If that is not what you are looking for, then I'm afraid that there is no way around setting up a second Pi-hole for your kids (you could use the older Pi Model B). You can then tag the kids devices to use this Pi-hole instead of your "main" one.
I am currently using my router's DHCP option and using PiHole to serve that function gets complicated quickly. Also, I am not attempting to bypass PiHole and send to OpenDNS from a specific interface, I want/need both interfaces monitoring and filtering, but using different upstream DNS as forwarders. Essentially WLAN0 goes to OpenDNS and ETH0 goes to Google but both interfaces are doing name resolution if that makes sense.
I think I'll submit an idea in Feature Requests to see what the level of interest might be in adding such a feature.