Multicast DNS (mDNS) reflector in a Docker container.
2.9K
Docker container of mDNS Reflector, a lightweight and performant multicast DNS reflector.
It reflects mDNS queries and responses between multiple network interfaces, allowing devices in separate LANs to discover each other without placing them in the same broadcast domain.
This is useful when running IoT devices in a separate network while still allowing discovery from your main LAN.
services:
mdns:
image: dockurr/mdns
container_name: mdns
network_mode: host
environment:
INTERFACES: "eth0 vlan20"
restart: always
docker run -it --rm --name mdns -e "INTERFACES=eth0 vlan20" --network host docker.io/dockurr/mdns
Important
This container requires host networking because the reflector needs access to the real network interfaces and multicast traffic.
Set the INTERFACES environment variable to a space-separated list of interfaces that should participate in mDNS reflection.
environment:
INTERFACES: "eth0 vlan20"
At least two interfaces are required.
On the host, run:
ip link
Common examples are eth0, br0, vlan20, eno1, or bridge/VLAN interfaces created by your router, firewall, or virtualization platform.
Content type
Image
Digest
sha256:f64d33ba9…
Size
5.7 MB
Last updated
8 days ago
docker pull dockurr/mdnsPulls:
103
Jun 29 to Jul 5