Per mac address DNS forward

I think it would be interesting, in order to have implemented parental control to forward DNS queries to some DNS servers or others depending on the MAC address, so I can send my children’s devices to OpenDNS servers and my own computer, for instance, to google, Microsoft or whatever.

This way Pi-hole would work also as a parental control device.

Thank you very much!

You can do that whit:

make a /etc/dnsmasq.d/mydnsstuff.conf

dhcp-option=tag:nopie,option:dns-server,208.67.222.222,208.67.220.220

dhcp-host=xx:xx:xx:xx:xx:xx,set:nopie,MyHostname

Replace xx:xx:xx:xx:xx:xx whit the mac adress

1 Like

Note that this requires you to be using Pi-hole as your DHCP server.

Mmm… interesting. Will try to do that to see if it works. Anyway, it would be interesting implement via GUI.

Thank you very much!