Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588716 - sys-libs/glibc: nscd causes mdns *.local lookups to fail
Summary: sys-libs/glibc: nscd causes mdns *.local lookups to fail
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-12 22:28 UTC by Reuben Martin
Modified: 2017-12-02 17:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2016-07-12 22:28:07 UTC
mdns lookup is working:

$ avahi-resolve-host-name HPStream1-Linux.local
HPStream1-Linux.local   172.16.4.6	


it seems to be propagating to glib (though it takes a little long to lookup):

$ getent hosts HPStream1-Linux.local
172.16.4.6      HPStream1-Linux.local	


I can ping it using a .local address:

$ ping HPStream1-Linux.local
PING HPStream1-Linux.local (172.16.4.6) 56(84) bytes of data.
64 bytes from hpstream1-linux.office.kc.com (172.16.4.6): icmp_seq=1 ttl=64 time=0.136 ms
64 bytes from hpstream1-linux.office.kc.com (172.16.4.6): icmp_seq=2 ttl=64 time=0.142 ms
^C
--- HPStream1-Linux.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.136/0.139/0.142/0.003 ms	


But ssh doesn't want to play nice:

ssh HPStream1-Linux.local
ssh: Could not resolve hostname hpstream1-linux.local: Name or service not known

After stopping nscd, ssh works.

From nsswitch.conf:

hosts: files mdns4_minimal [NOTFOUND=return] resolve mdns mymachines wins myhostname



Reproducible: Always
Comment 1 SpanKY gentoo-dev 2016-11-12 06:30:14 UTC
do you have any known working versions ?
Comment 2 Reuben Martin 2016-11-12 16:37:39 UTC
I do not, but then again I've ripped nscd out of all my machines since then and rely on the cache built into systemd's resolver.
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-12-02 17:15:33 UTC
(In reply to Reuben Martin from comment #2)
> I do not, but then again I've ripped nscd out of all my machines since then
> and rely on the cache built into systemd's resolver.

OK not much we can do here... Feel free to reopen when you can reproduce the problem.