# Pihole, VLANs & VPN

**URL:** <https://discourse.pi-hole.net/t/pihole-vlans-vpn/36814>\
**Category:** Community Help\
**Tags:** v5-0\
**Created:** [August 6, 2020, 8:52pm UTC](https://discourse.pi-hole.net/t/pihole-vlans-vpn/36814 "2020-08-06T20:52:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [August 7, 2020, 5:23am UTC](https://discourse.pi-hole.net/t/pihole-vlans-vpn/36814/3 "2020-08-07T05:23:16Z")

</div>

I also route traffic from different VLANs to pihole.  
But you could also add virtual interface to your device hosting pihole for every VLAN

> [@Secondary VLAN resolving DNS query without PiHole](https://discourse.pi-hole.net/t/secondary-vlan-resolving-dns-query-without-pihole/33260/7):
>
> That's because you are doing it wrong! wink Don't route DNS Traffic from VLAN to VLAN but instead add some VLAN Interfaces to your Pi-Hole Server so it has a simple local connection with every Client in each VLAN wink If you want I can write up a Tutorial for this in English ? In case you speak Dutch or feel like using Google Translate then click here : [https://gathering.tweakers.net/forum/list\_message/57865570#57865570](https://gathering.tweakers.net/forum/list_message/57865570#57865570)

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-vlans-vpn/36814)._
