Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 95895
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Saleem Abdulrasool (RETIRED) <compnerd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Phil Pennock <gentoo@spodhuis.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
nss-mdns-0.7.ebuild sys-auth/nss-mdns-0.7.ebuild text/plain Daniel Lin 2005-12-08 16:54 0000 616 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95895 depends on: Show dependency tree
Bug 95895 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-12 13:56 0000
Given a local hostname of foo and a multicast DNS install (net-misc/howl in
this
case), it should be possible to "ping foo.local" and get a ping of the
localhost.

With nscd running, this fails for me.  Stopping nscd allows it to work,
restarting nscd causes it to stop again.  I'm not familiar with how the nscd
stuff hooks in to the libc resolution routines, but it seems to override
/etc/host.conf with resolution based on /etc/nsswitch.conf.

Installing a libnss_mdns in /lib/ and putting something in /etc/nsswitch.conf
to
cause it to be used fixes this for me.  This is an ebuild for an nss-mdns found
on the 'net.  Please note that no security audit has been performed and this
has
been minimally tested on x86, with "stable x86" install (not ~x86).

Reproducible: Always
Steps to Reproduce:
1. emerge net-misc/howl; /etc/init.d/mDNSResponder start
2. ping foo.local (fails)
3. /etc/init.d/nscd stop; ping foo.local (succeeds)
4. /etc/init.d/nscd start; ping foo.local (fails)
5. /etc/init.d/nscd stop; ping foo.local (succeeds)

Actual Results:  
Hostname resolution, as invoked by 'ping', fails to resolve mDNS requests in
.local whilst nscd is running, unless an NSS module providing mDNS service is
installed and configured.

Installing this new module and adding 'mdns4' to the hosts: line in
/etc/nsswitch.conf fixes things.


# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$

inherit eutils

DESCRIPTION="Name Service Switch module for Multicast DNS"
HOMEPAGE="http://0pointer.de/lennart/projects/nss-mdns/"
SRC_URI="http://0pointer.de/lennart/projects/nss-mdns/${P}.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="x86"
IUSE=""

src_compile() {
                econf --libdir=/lib

                emake || die "Failed to make"
}

src_install() {
                make DESTDIR=${D} install
                dodoc README LICENSE doc/README.html doc/style.css
}

------- Comment #1 From SpanKY 2005-06-12 14:47:37 0000 -------
not interested in maintaining a new mdns module

------- Comment #2 From Daniel Lin 2005-12-08 16:54:19 0000 -------
Created an attachment (id=74356) [details]
sys-auth/nss-mdns-0.7.ebuild

Here's an update; >=0.6 uses Avahi by default.

------- Comment #3 From SpanKY 2005-12-12 20:54:51 0000 -------
*** Bug 66295 has been marked as a duplicate of this bug. ***

------- Comment #4 From Saleem Abdulrasool (RETIRED) 2005-12-20 23:20:52 0000 -------
Added to portage.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug