Config mDNS (auto discovery / Bonjour) on OpenWRT

Install packages

opkg update
opkg install avahi-daemon

Configure avahi

/etc/avahi/avahi-daemon.conf

Change enable-reflector from no to yes:

[reflector]
enable-reflector=yes

Start avahi

/etc/init.d/dbus start
/etc/init.d/dbus enable
/etc/init.d/avahi-daemon start
/etc/init.d/avahi-daemon enable

Configure Firewall

  • Protocal: UDP
  • Destination zone: Device (router)
  • Destination port: 5353