1.First install samba
2.set /etc/nsswitch.conf, add "wins"
...
hosts: files wins dns
...
3.test
$ ping HOSTNAME
4.backup /usr/lib/libnss_wins.so
$ sudo cp /usr/lib/libnss_wins.so{,.bak}
5.remove samba
6.restroe /usr/lib/libnss_wins.so
$ sudo cp /usr/lib/libnss_wins.so{.bak,}
$ sudo ln -s libnss_wins.so /usr/lib/libnss_wins.so.2
7.test again