# Block domains device-specific

**URL:** <https://discourse.pi-hole.net/t/block-domains-device-specific/1942>\
**Category:** Customizing Pi-hole\
**Tags:** blacklisting\
**Created:** [February 27, 2017, 6:48pm UTC](https://discourse.pi-hole.net/t/block-domains-device-specific/1942 "2017-02-27T18:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipusum](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/i/ecccb3/32.png) [@ipusum](https://discourse.pi-hole.net/u/ipusum)\
**Post date:** [February 27, 2017, 6:48pm UTC](https://discourse.pi-hole.net/t/block-domains-device-specific/1942/1 "2017-02-27T18:48:48Z")

</div>

Hello,

Is it possible to block some domains only for some specific devices?  
I want to reach for example google.com on device A but noch on device B.

Greets

---

<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:** [February 28, 2017, 2:29am UTC](https://discourse.pi-hole.net/t/block-domains-device-specific/1942/2 "2017-02-28T02:29:09Z")

</div>

Basically, no. Dnsmasq doesn't support different DNS records for different clients.

Related:

> [@Allow specific machines to bypass Pi-Hole](https://discourse.pi-hole.net/t/allow-specific-machines-to-bypass-pi-hole/1858):
>
> Hi all, thanks for such a great product! I currently have my router set to send all DNS traffic to my Pi-Hole (a RPi3), and everything is working wonderfully. I'd like to get a sense for how to allow one machine in my internal network to bypass the Pi3 and go directly to the upstream DNS servers, without clogging the logs. Would iptables be the place to start? The machine handles automated content searches, and isn't a machine that does any 'browsing,' so I don't have a need for ad-blocking. I…

> [@Blocking specific webaddresses](https://discourse.pi-hole.net/t/blocking-specific-webaddresses/74):
>
> Can we realisticly block specific webaddresses with the blacklist? like [http://youtube.com/thisannoyoingchannel](http://youtube.com/thisannoyoingchannel) ? meaning can we use the pi-hole for content filtering?

---

<div class="post-metadata">

**Author:** ![warsawday](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@warsawday](https://discourse.pi-hole.net/u/warsawday)\
**Post date:** [March 30, 2017, 8:04pm UTC](https://discourse.pi-hole.net/t/block-domains-device-specific/1942/3 "2017-03-30T20:04:11Z")

</div>

You could run multiple instances of pihole (e.g. in LXC/Docker container, different virtual machines or even physical devices) and assign them different ip in your lan. Next, simply set DNS to point to IP per your needs:) After flushing the dns cache (automatic over time, can be triggered on Windows by ipcoonfig /all), you are good to go 🙂

Have had a similar idea and this seems to be the way to go IF I would like to use PiHole for such detailed management.

However, IMHO PiHole is rather -per design - a tool to be effortless in setup and use, while firewalls are rather something that can do such detailed actions (iptables for linux).
