<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>95895</bug_id>
          
          <creation_ts>2005-06-12 13:56 0000</creation_ts>
          <short_desc>sys-libs/nss-mdns needed to make nscd work reliably with multicast-DNS (howl/mDNSresponder)</short_desc>
          <delta_ts>2005-12-20 23:20:52 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>EBUILD</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@spodhuis.org</reporter>
          <assigned_to>compnerd@gentoo.org</assigned_to>
          <cc>joem@gentoo.org</cc>
    
    <cc>ladanyi@tmit.bme.hu</cc>
    
    <cc>sebastien.estienne@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>gentoo@spodhuis.org</who>
            <bug_when>2005-06-12 13:56:21 0000</bug_when>
            <thetext>Given a local hostname of foo and a multicast DNS install (net-misc/howl in this
case), it should be possible to &quot;ping foo.local&quot; 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&apos;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 &apos;net.  Please note that no security audit has been performed and this has
been minimally tested on x86, with &quot;stable x86&quot; 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 &apos;ping&apos;, 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 &apos;mdns4&apos; 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=&quot;Name Service Switch module for Multicast DNS&quot;
HOMEPAGE=&quot;http://0pointer.de/lennart/projects/nss-mdns/&quot;
SRC_URI=&quot;http://0pointer.de/lennart/projects/nss-mdns/${P}.tar.gz&quot;
LICENSE=&quot;GPL-2&quot;

SLOT=&quot;0&quot;
KEYWORDS=&quot;x86&quot;
IUSE=&quot;&quot;

src_compile() {
                econf --libdir=/lib

                emake || die &quot;Failed to make&quot;
}

src_install() {
                make DESTDIR=${D} install
                dodoc README LICENSE doc/README.html doc/style.css
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-06-12 14:47:37 0000</bug_when>
            <thetext>not interested in maintaining a new mdns module</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ephemient@gmail.com</who>
            <bug_when>2005-12-08 16:54:19 0000</bug_when>
            <thetext>Created an attachment (id=74356)
sys-auth/nss-mdns-0.7.ebuild

Here&apos;s an update; &gt;=0.6 uses Avahi by default.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-12-12 20:54:51 0000</bug_when>
            <thetext>*** Bug 66295 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>compnerd@gentoo.org</who>
            <bug_when>2005-12-20 23:20:52 0000</bug_when>
            <thetext>Added to portage.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>74356</attachid>
            <date>2005-12-08 16:54 0000</date>
            <desc>sys-auth/nss-mdns-0.7.ebuild</desc>
            <filename>nss-mdns-0.7.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA1IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6ICQKCkRFU0NSSVBUSU9OPSJOYW1lIFNlcnZpY2UgU3dpdGNoIG1vZHVsZSBmb3IgTXVsdGlj
YXN0IEROUyIKSE9NRVBBR0U9Imh0dHA6Ly8wcG9pbnRlci5kZS9sZW5uYXJ0L3Byb2plY3RzL25z
cy1tZG5zLyIKU1JDX1VSST0iJHtIT01FUEFHRX0ke1B9LnRhci5neiIKTElDRU5TRT0iR1BMLTIi
ClNMT1Q9IjAiCktFWVdPUkRTPSJ+eDg2IgpJVVNFPSJhdmFoaSIKREVQRU5EPSJhdmFoaT8gKCBu
ZXQtZG5zL2F2YWhpICkiCgpzcmNfY29tcGlsZSgpIHsKCWxvY2FsIG15b3B0cwoJdXNlIGF2YWhp
ICYmCgkJbXlvcHRzPSIke215b3B0c30gLS1lbmFibGUtYXZhaGkiIHx8CgkJbXlvcHRzPSIke215
b3B0c30gLS1kaXNhYmxlLWF2YWhpIgoJZWNvbmYgJHtteW9wdHN9IHx8IGRpZSAiZWNvbmYgZmFp
bGVkIgoJZW1ha2UgfHwgZGllICJlbWFrZSBmYWlsZWQiCn0KCnNyY19pbnN0YWxsKCkgewoJbWFr
ZSBERVNURElSPSR7RH0gaW5zdGFsbCB8fCBkaWUKCWRvZG9jIFJFQURNRQp9Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>