From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Name service switch configuration Date: Wed, 25 Feb 2015 18:07:21 +0100 Message-ID: <87r3tdvs1i.fsf@gnu.org> References: <87fvalqqva.fsf@gnu.org> <87r3tev3ua.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQfQm-0000K4-ON for guix-devel@gnu.org; Wed, 25 Feb 2015 12:07:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQfQi-0006RX-Nm for guix-devel@gnu.org; Wed, 25 Feb 2015 12:07:28 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQfQi-0006RT-L1 for guix-devel@gnu.org; Wed, 25 Feb 2015 12:07:24 -0500 In-Reply-To: <87r3tev3ua.fsf@netris.org> (Mark H. Weaver's message of "Wed, 25 Feb 2015 02:37:49 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > Sounds great, except that it doesn't work for me :-( > > I've done as you recommended, and "avahi-browse -avr" successfully shows > names of *.local hosts, but if I try to do name lookups on those names, > they always fail. > > I've attached my OS configuration. Any ideas? Long story short: there was a bug fixed by 60a2d27. I=E2=80=99ve tried your OS config in a VM. Everything looks good: nsswitch= .conf is OK, and we can see that libnss_mdns.so is mapped into nscd=E2=80=99s add= ress space. Yet looking up =E2=80=98jojen.local=E2=80=99 doesn=E2=80=99t work. I added= some nscd debugging like this: (nscd-service (nscd-configuration (inherit %nscd-default-configuration) (debug-level 10)) #:name-services (list nss-mdns)) /var/log/nscd.log shows warns about missing /var/db/nscd directory and /etc/resolv.conf, which I added (with =E2=80=9Cdhclient eth0=E2=80=9D for t= he latter), to no avail. Then I notice that even my config, which works on the bare metal, doesn=E2=80=99t work in the VM. I strace nscd in the VM to notice that it = tries to connect to /run/avahi-daemon/socket, which doesn=E2=80=99t exist. This = is where I realize that my real root partition has /var/run as a symlink to /run, which is why I don=E2=80=99t have the problem. Pheeww. Can you confirm that it works now? :-) Thanks, Ludo=E2=80=99.