dockurr/mdns

Sponsored OSS

By dockurr

Updated 8 days ago

Multicast DNS (mDNS) reflector in a Docker container.

Image
Networking
Security
Internet of things
1

2.9K

dockurr/mdns repository overview

mDNS Reflector

Build Version Size Package Pulls

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.

Features ✨

  • Reflects mDNS traffic between multiple interfaces
  • Supports both IPv4 and IPv6
  • Lightweight Alpine-based image

Usage 🐳

Docker Compose:
services:
  mdns:
    image: dockurr/mdns
    container_name: mdns
    network_mode: host
    environment:
      INTERFACES: "eth0 vlan20"
    restart: always
Docker CLI:
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.

Configuration ⚙️

How do I select the interfaces?

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.

How do I find my interface names?

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.

Stars 🌟

Stargazers

Tag summary

Content type

Image

Digest

sha256:f64d33ba9

Size

5.7 MB

Last updated

8 days ago

docker pull dockurr/mdns

This week's pulls

Pulls:

103

Jun 29 to Jul 5