[Nix-dev] NetBIOS/WINS name lookup in NixOS

Bjørn Forsman bjorn.forsman at gmail.com
Sat Sep 7 14:52:10 CEST 2013


On 2 September 2013 20:30, Bjørn Forsman <bjorn.forsman at gmail.com> wrote:
> Hi everyone,
>
> In Ubuntu I can install libnss-winbind + winbind and append "wins" to
> the "hosts:" section in /etc/nsswitch.conf to have NetBIOS/WINS name
> lookup (Windows machine names). But when I try to do "the same" for
> NixOS, it doesn't work:
>
> $ ping windows-pc
> ping: unknown host windows-pc
>
> I've already made the samba package install libnss_winbind.so and
> libnss_wins.so (in git master), but I don't think they are picked up.

Answering myself.

This is actually documented in nsswitch.conf(5) man page. Glibc >= 2.1
looks for libnss_<service>.so.2, not libnss_<service>.so. I updated
samba (locally) and now NetBIOS name lookup works!

I'll push it after a bit more testing.

Best regards,
Bjørn Forsman


More information about the nix-dev mailing list