mDNS Not Propagating Across VLANs — Reflector Config Guide
Joe B.
Expert ★★★★★ 27,853 satisfied customers
Specialities: Windows 11/10, Printers, Networking, VLANs, Multicast & Bonjour/mDNS
mDNS not propagating across VLANs — Bonjour across subnets, mDNS reflector/gateway, firewall & multicast rules
Quick answer: the accepted fix
Accepted fix when mDNS is not propagating across VLANs: confirm Bonjour/mDNS works inside each VLAN, then deploy an mDNS reflector / Bonjour gateway (for example, Avahi with enable-reflector=yes) bound to the VLAN interfaces you want to bridge. Keep link-local multicast (UDP 5353) enabled on those VLANs, allow only required unicast service ports (IPP, AirPlay, Chromecast, etc.) through the firewall, and avoid reflecting to guest or untrusted networks. This restores mDNS discovery across subnets without flattening your VLAN design.
Why mDNS does not propagate across VLANs by default
mDNS (multicast DNS) was designed for small, flat home networks. It uses link-local multicast addresses (224.0.0.251 / ff02::fb) and a TTL of 255 so packets stay inside a single broadcast domain. When you introduce VLANs, routed subnets, and firewalls, those link-local packets are intentionally not forwarded. That’s why AirPrint, AirPlay, Chromecast, and other Bonjour/mDNS services work on one SSID or subnet but disappear across VLAN boundaries. To make mDNS work across VLANs, you need a device (router, controller, or VM) that acts as an mDNS reflector / Bonjour gateway, snooping and re-emitting mDNS packets across selected interfaces instead of routing the multicast directly.
How to verify the reflector fixed mDNS across VLANs
After configuring an mDNS reflector and firewall rules, run a quick end-to-end test:
Put an mDNS service (for example, an AirPrint printer or Apple TV) in your IoT VLAN and a client in your main LAN VLAN. Make sure the client cannot see the service when the reflector is stopped, but can still ping it by IP if the firewall allows it. Then start the reflector (or Bonjour gateway), wait a few seconds, and refresh the list of printers, AirPlay devices, or cast targets. If mDNS across VLANs is working correctly, the services should appear on the remote VLAN and remain stable during normal use. For extra verification, use tools like dns-sd, avahi-browse, or mdns-scan on each VLAN to check that service records are visible from both sides.
mDNS not propagating across VLANs — quick troubleshooting tips
Most cross-VLAN mDNS issues come from link-local multicast design, missing reflectors, or multicast/firewall misconfig.
Quick path: verify Bonjour/mDNS works on each VLAN → ensure multicast and IGMP snooping/querier are healthy → deploy an mDNS reflector / Bonjour gateway between selected VLANs → open only the necessary unicast service ports (IPP, AirPlay, Chromecast) in the firewall → restrict reflection to LAN ↔ IoT, not guest. This sequence solves the majority of “mDNS not working across subnets” cases in home labs, small offices, and multi-VLAN Wi-Fi setups.
Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.
Expert will respond in minutes
We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.
Save time & money
No scheduling hassles or expensive consults. Membership can save you significant time and money each month.
FAQ
Why is mDNS not propagating across VLANs or subnets?
mDNS traffic is link-local multicast and is not routed between subnets by design. When you introduce VLANs and layer-3 boundaries, UDP 5353 packets to 224.0.0.251 stay inside each VLAN. That’s why Bonjour-based discovery (AirPrint, AirPlay, Chromecast, HomeKit) works within a single VLAN but fails across VLANs unless you use an mDNS reflector or Bonjour gateway.
What is an mDNS reflector or Bonjour gateway?
An mDNS reflector (for example, Avahi with enable-reflector=yes or vendor features like UniFi’s mDNS reflector and various Bonjour gateways) listens for mDNS packets on one interface and re-broadcasts them on other selected interfaces. This lets clients on one VLAN discover services registered on another VLAN while still keeping unicast traffic under firewall control.
Do I need to route multicast 224.0.0.251 to make mDNS work across VLANs?
Typically no. Instead of routing link-local multicast, you deploy an mDNS reflector or Bonjour gateway that repeats or proxies mDNS traffic between VLANs. You still need normal unicast routing and firewall rules to allow clients to reach the services once discovered, but you don’t route 224.0.0.251 directly between subnets.
Is using an mDNS reflector across VLANs secure?
It can be, if you limit which VLANs participate and keep firewall rules tight. Only bridge mDNS between trusted VLANs (for example, LAN and IoT), avoid reflecting to guest networks, and allow only the necessary unicast service ports. Many networks successfully run mDNS across VLANs this way without giving up segmentation.
| Symptom | Likely cause | Quick fix |
|---|---|---|
| AirPrint/AirPlay works on one SSID only | mDNS limited to a single VLAN; no reflector between VLANs | Confirm mDNS per-VLAN; deploy an mDNS reflector / Bonjour gateway between LAN and IoT VLANs |
| Devices visible by IP but not via Bonjour | Unicast routing OK, but UDP 5353 multicast is not bridged |
Use Avahi or vendor mDNS reflector; keep firewall allowing only required unicast ports |
| mDNS storms or noisy discovery across the network | Reflector/gateway forwarding all services to many VLANs | Restrict reflected VLANs and DNS-SD service types to only AirPrint/AirPlay/Chromecast |
| mDNS fails even within a single VLAN | Multicast blocked, no IGMP querier, or Wi-Fi profile filtering multicast | Enable multicast, configure an IGMP querier, and ensure SSID allows UDP 5353 |
Step-by-step: enabling mDNS across VLANs with a reflector
- Verify that Bonjour/mDNS services work inside each VLAN (no reflector yet). Fix local multicast issues first if discovery fails on a single VLAN.
- On your router or a small Linux VM, install and configure an mDNS reflector (for example, Avahi) with
enable-reflector=yesandallow-interfacesset to the VLAN interfaces that should share services. - Ensure multicast is not globally blocked on those VLANs and that Wi-Fi SSIDs mapped to them allow
UDP 5353. If you run IGMP snooping, make sure there is an IGMP querier active. - Update firewall rules so clients on the “consumer” VLAN can reach the service ports (IPP 631 for AirPrint, AirPlay/Chromecast ports, etc.) on the IoT VLAN, while still blocking unnecessary traffic and keeping guest networks isolated.
Note for UniFi, OpenWrt & controller-based networks
- On platforms like UniFi, Mist, or Enterprise WLAN controllers, look for a built-in mDNS reflector / Bonjour gateway option. Enable it on the SSIDs and VLANs where you want mDNS across subnets and select the service types to forward.
- On OpenWrt or similar, use Avahi reflector mode or a supported mDNS package, following the vendor’s guide for firewall rules and interface selection so discovery remains limited to the VLANs you choose.
Sources
- Debian manpages — avahi-daemon.conf (enable-reflector and mDNS reflection)
- Christopher Smart — Resolving mDNS across VLANs with Avahi on OpenWrt
- Juniper Mist — Bonjour gateway for mDNS across VLANs
Filed under: Network security / VPN / office policies (advanced)
Related articles
- FortiGate mDNS across VLANs — helper/reflector configuration
- AirPrint Across VLANs — Avahi Reflector Setup Guide
- Printer won’t print prescriptions or medical reports — it’s urgent and nothing comes out
- Chrome managed profile watermark prints wrong — policy override checks you can do safely
- Ricoh “Hold Print” enabled by AD — disable policy
- Ricoh SMB scan works but print fails — AES signing mismatch
- Android VPN blocks printer discovery — split tunnel rule (work profile)
- Android “Secure print only” — enterprise toggle: setup, policy, fixes