Description of problem: glibc 2.8.90 and higher supports a new interface in NSS for hostname lookups which allows to remove some limitations and bugs for the mdns implementation. The interface is used to look up IPv4 and IPv6 at the same time. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1.nm -D /lib{,64}/libnss_mdns.so.2 |grep gethostbyname4 2. 3. Actual results: no output Expected results: output showing existence of this entry point Additional info:
Lennart, what's the status of this? You explicitly asked me to provide this functionality (back in Bangalore). The MDNS module will greatly benefit from this callback.
Yes, I agree. Actually I have the port ready in a git repo here. The reason this is not available yet is that I want to get rid of nss-mdns completely and replace it by a tiny stub that is shipped inside of the avahi package. nss-mdns includes a mini mdns stack and support for all kinds of crazy operating systems and hence the code is a bit difficult to read. I want to get rid of all this cruft. The new code is much much cleaner and simpler but I haven't found the time to integrate that well into Avahi yet and come up with a transition plan. Sorry for that delay.
Lennart, did this ever happen ?
Any update on this?
This bug affected me because it prevented me to only use link-local IPv6 addresses in my small, one-link, network. Without gethostbyname4 there is no way to get the scope ID of a .local address (ie. the interface on which a fe80:: host has been seen). In January someone has written a patch which solves the issue this here: http://permalink.gmane.org/gmane.linux.debian.devel.pkg-utopia/11326. I've applied it on the sources from git://git.0pointer.de/nss-mdns.git and the result just work (on my system). I've put my commits on my GitHub account, https://github.com/fishilico/nss-mdns. Lennart, please feel free to merge some of the changes to nss-mdns or to publish what you've done to solve this issue, as the transition Avahi seems to take an incredible amount of time.
This is being worked on upstream at https://github.com/lathiat/nss-mdns/issues/5
nss-mdns-0.14.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-67ab47821b
nss-mdns-0.14.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-41065569cf
nss-mdns-0.14.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b11d5f4166
nss-mdns-0.14.1-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-2bc3059d1b
nss-mdns-0.14.1-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b11d5f4166
nss-mdns-0.14.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-67ab47821b
nss-mdns-0.14.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-41065569cf
nss-mdns-0.14.1-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-2bc3059d1b
nss-mdns-0.14.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
nss-mdns-0.14.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
nss-mdns-0.14.1-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
nss-mdns-0.14.1-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.