add mdns hostname lookup support
Context
mdns name lookups (e.g. foo.local
) do not work in flatpaks.
My particular usage was to use the Firefox flatpak to reach an HTTP server on the local network. The HTTP server is running avahi-daemon, and outside of flatpak the foo.local
name resolves fine. But inside the flatpak it does not.
https://github.com/flatpak/flatpak/issues/348 on the flatpak side noticed this, but AIUI this would need to be fixed in the runtime.
Description
-
Add nss-mdns (or equivalent) library -
Add configuration (e.g. mdns4_minimal [NOTFOUND=return]
in /etc/nsswitch.conf) to allow mdns queries to work.
Acceptance Criteria
When this work is complete, mdns queries will work in flatpaks.