add mdns hostname lookup support
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.
- Add nss-mdns (or equivalent) library
Add configuration (e.g.
mdns4_minimal [NOTFOUND=return]in /etc/nsswitch.conf) to allow mdns queries to work.
When this work is complete, mdns queries will work in flatpaks.