Samba 3.0.2a name resolution from shell
This problem is annoying me now! I've read many many sites about how this should work, but i am just unable to get it going.
I would like to be able to resolve a host name to IP from the command line. That is, i type ping somemachine, and it resolves that name to and IP address. I have samba running very nicely, and it is my master browser. It has WINS server turned on and is preffered master browser etc, and trawling through the logs shows that i wins elections. I have XP machines throughout the rest of the house. If i use nmbstat, name resolution works fine for all workstations. If i run tcpdump port 137, then i see the name requests flowing etc. However, if i ping a machine by name from the command line, i just get unknown host errors (doing the same with an IP instead works fine)
I have played with nsswitch.conf and made sure wins and winbind are listed, i have made sure winbindd is running too. Also made sure winbind is in the hosts.conf file and that libnss_wins.so is in the right place. resolv.conf is set to my machine and to search my workgroup.
Where am i going wrong here. I could just use hosts files, but that, i think, is a bit lame, and i like the challenge of getting this to work. Please, any more hints tips etc are greatfully appreciated.