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

**URL:** <https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924>\
**Category:** Help\
**Created:** [August 15, 2018, 6:24pm UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924 "2018-08-15T18:24:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@sdo](https://discourse.pi-hole.net/u/sdo)\
**Post date:** [August 15, 2018, 6:24pm UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/1 "2018-08-15T18:24:34Z")

</div>

Hi - pi-hole is in and working...  
...but I need to allow certain specific clients inside the LAN to be "ad-served".  
How can I add specific client side IP addresses to an always allow list which pi-hole won't block?  
Thanks,  
dave.

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [August 15, 2018, 6:30pm UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/2 "2018-08-15T18:30:22Z")

</div>

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.

```auto
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 🙂

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [August 15, 2018, 7:52pm UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/3 "2018-08-15T19:52:13Z")

</div>

A simpler method is to just manually set the devices to use a different DNS server in their settings.

---

<div class="post-metadata">

**Author:** ![sdo](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@sdo](https://discourse.pi-hole.net/u/sdo)\
**Post date:** [August 16, 2018, 7:01am UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/4 "2018-08-16T07:01:51Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [August 16, 2018, 11:05am UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/5 "2018-08-16T11:05:38Z")

</div>

This may also be helpful:

> [@How can I use Pi-hole for all my devices except one (or more)?](https://discourse.pi-hole.net/t/how-can-i-use-pi-hole-for-all-my-devices-except-one-or-more/3372):
>
> [Configuring your router's DHCP options to force clients to use Pi-hole as their DNS server](https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245) is the quickest way to get all of your network devices to use Pi-hole. But what if you want a certain device to not use it? Perhaps a family member is frustrated with [white or blacklisting sites](https://discourse.pi-hole.net/t/how-do-i-whitelist-or-blacklist-a-domain/244). Or maybe you want to log queries for all network devices except for a few. Solution The solution is to [manually set the DNS server](https://developers.google.com/speed/public-dns/docs/using#change_your_dns_servers_settings) to on the device you don't want to use Pi-hole with. Setting the DNS server o…

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [September 6, 2018, 11:05am UTC](https://discourse.pi-hole.net/t/how-to-redirect-connected-clients-from-pi-hole-to-other-dns/11924/6 "2018-09-06T11:05:39Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
