Bug 454453 - Provide _nss_mdns_gethostbyname4_r interface
Summary: Provide _nss_mdns_gethostbyname4_r interface
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: nss-mdns
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Adam Goode
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-08 16:12 UTC by Ulrich Drepper
Modified: 2018-04-18 00:36 UTC (History)
5 users (show)

Fixed In Version: nss-mdns-0.14.1-1.fc27 nss-mdns-0.14.1-1.fc26 nss-mdns-0.14.1-1.fc28 nss-mdns-0.14.1-1.el7
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-27 20:03:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ulrich Drepper 2008-07-08 16:12:19 UTC
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:

Comment 1 Ulrich Drepper 2009-01-31 22:46:32 UTC
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.

Comment 2 Lennart Poettering 2009-02-02 15:10:20 UTC
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.

Comment 3 Matthias Clasen 2009-06-11 18:20:52 UTC
Lennart, did this ever happen ?

Comment 4 Adam Goode 2011-08-12 14:39:00 UTC
Any update on this?

Comment 5 Nicolas Iooss 2013-07-07 19:34:03 UTC
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.

Comment 6 Adam Goode 2016-11-29 04:35:29 UTC
This is being worked on upstream at https://github.com/lathiat/nss-mdns/issues/5

Comment 7 Fedora Update System 2018-03-18 23:01:02 UTC
nss-mdns-0.14.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-67ab47821b

Comment 8 Fedora Update System 2018-03-18 23:01:24 UTC
nss-mdns-0.14.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-41065569cf

Comment 9 Fedora Update System 2018-03-18 23:01:39 UTC
nss-mdns-0.14.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b11d5f4166

Comment 10 Fedora Update System 2018-03-18 23:03:16 UTC
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

Comment 11 Fedora Update System 2018-03-19 14:43:55 UTC
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

Comment 12 Fedora Update System 2018-03-19 18:43:53 UTC
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

Comment 13 Fedora Update System 2018-03-19 19:01:58 UTC
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

Comment 14 Fedora Update System 2018-03-19 21:20:34 UTC
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

Comment 15 Fedora Update System 2018-03-27 20:03:41 UTC
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.

Comment 16 Fedora Update System 2018-03-28 23:17:07 UTC
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.

Comment 17 Fedora Update System 2018-03-30 13:07:01 UTC
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.

Comment 18 Fedora Update System 2018-04-18 00:36:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.