Skip to content

Commit

Permalink
Avoid replicating mDNS messages received on docker0 (#43)
Browse files Browse the repository at this point in the history
Currently mdns-repeater replicates all messages received except those
which have the source address of one of the specified interfaces.

When running a service on host network, and that service announces its
addresses on all interfaces via mDNS. Typically, the IN A records
announced on each interface is the address of that interface (e.g.
Apple's mDNSResponder reference implementation behaves that way,
used by OTBR).

Adding docker0 makes sure that docker0 is in the list of interfaces to
replicate to, which makes sure that interfaces from that address are
considered local and not replicated.
  • Loading branch information
agners authored Feb 21, 2022
1 parent 26bc824 commit 5b3edc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/services.d/mdns/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Start mDNS repeater service
# ==============================================================================

exec mdns-repeater -f ${ACTIVE_INTERFACE} hassio
exec mdns-repeater -f ${ACTIVE_INTERFACE} hassio docker0

0 comments on commit 5b3edc0

Please sign in to comment.