(this is not a question as i already have the solution)
i wanted to post this because i have been searching the last three days for this problem in many forums and found many people having similar problems but never got the right answer.
the situation in short
- i have set up samba correctly and my windows pcs and linux pcs can see each other in the windows (netbios) network
- shared files are reachable and readable from every pc
- every pc can ping each other using the ip address (ping 192.168.0.100)
- from windows pcs: ping netbios names is working (ping lepton2 will ping the ip behind the name lepton2)
- PROBLEM! from linux pcs: ping netbios names will result in "unknown host lepton2"
the most common answer to this problem is: hardcode the host names in the hosts file. sure, this will work, but not if the network is using dhcp.
after three days of searching and trying i have finally found this
(well okay finding the link is not so hard, but finding the right information there...)
the part of interest would be
"...and the "wins" parameter needs to be added to the "hosts:" line in the /etc/nsswitch.conf file"
grab you favorite editor
edit your /etc/nsswitch.conf file
search for the line starting with hosts (my line was like this "hosts: files dns")
add "wins" to the line ("hosts: files dns wins")
now ping netbios name should also work from the linux pcs
well i hope this post will help others searching for the same problem