bgu
December 1, 2018, 10:27pm
1
I have a few devices on my network that do not function properly while using the Pi-hole for DNS. These devices do not allow manual IP configuration. I've tried using the Whitelist to no avail.
It would be nice to be able to set an alternate DNS server per device via the Pi-hole static DHCP options.
jfb
December 1, 2018, 10:30pm
2
This feature does exist, but not as a web GUI option. The entries are made in a dnsmasq configuration file as described here:
cat from 04-bypass.conf:
cat 04-bypass.conf
## The contents here bypass pihole by mac address
## This will go straight to Googles DNS Servers.
dhcp-option=tag:googlesdns1,6,8.8.8.8
dhcp-option=tag:googlesdns2,6,8.8.4.4
## This will go straight to Opendns Servers.
dhcp-option=tag:opendns1,6,208.67.222.220
dhcp-option=tag:opendns2,6,208.67.222.222
## OpenDNS FamilyShield
dhcp-option=tag:opendns3,6,208.67.222.123
dhcp-option=tag:opendns4,6,208.67.220.123
## Level3 DNS
dhcp-option=tag:Level3DNS1…
I came up with some stuff that eases things a little bit with my Pi-Hole life. Some of the ideas here, I gathered from around the internet. I wanted to share my findings.
These configs are to be placed in /etc/dnsmasq.d
I do realize that these could easily be combined into a single 04-custom.conf, but for the ease of teaching myself things I can do with this,, I like them seperate.
Bypass Pihole by MAC Address
What this Does:
Find the MAC Address of the device that you want to skip pihole, …
bgu
December 2, 2018, 1:14am
3
Thanks jfb, that did the trick, and thanks to deathbybandaid for his hard work.
Hello,
in the syntax what is the "6"
for example :
dhcp-option = tag: googlesdns1, "6", 8.8.8.8.8
it works perfectly with the "6".
if I do not put the "6" it does not work
I want to understand.
sorry for my little english i'm french
Mcat12
April 23, 2019, 3:16am
5
jfb
Split this topic
July 14, 2019, 10:40am
6
I'm closing this FR.
The part "Allow Specific Clients to Bypass Pi-hole" is possible since v5.0 with the introduction of the group management function.
For the part:
Please vote for one of the following FR that best suits your needs:
In Pi-hole 5, we have groups now. It would be great if one could specify different DNS servers for each group (typically, 1.1.1.3 for kids ).
Thank you.
Hello
I use pihole with m'y unbound resolver for my own requests
But i would using pihole whith open dns resolver for my childrens requests
Is it possible to ask to pihole using différent resolver depending ip source about client request ??
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!