When acting as a wins server, the nscd does not return the entries that are in the lmhosts file even though in the logs nmbd says it loaded them. root@ubuntu:/opt# cat /opt/cs/lib/lmhosts 192.9.200.1 TESTPC 192.9.200.20 NTSERVER#20 192.9.200.21 SAMBASERVER root@ubuntu:/opt# /opt/cs/sbin/nmbd -i | grep -i lmhosts doing parameter name resolve order = wins lmhosts hosts bcast doing parameter name resolve order = wins lmhosts hosts bcast getlmhostsent: lmhost entry: 192.9.200.1 TESTPC getlmhostsent: lmhost entry: 192.9.200.20 NTSERVER#20 getlmhostsent: lmhost entry: 192.9.200.21 SAMBASERVER Loaded hosts file /opt/cs/lib/lmhosts root@ubuntu:/opt# /opt/cs/bin/nmblookup -U localhost -R TESTPC querying TESTPC on 127.0.0.1 Sending a packet of len 50 to (127.0.0.1) on port 137 read_udp_v4_socket: ip 127.0.0.1 port 35072 read: 56 parse_nmb: packet id = 21161 Received a packet of len 56 from (127.0.0.1) port 137 nmb packet from 127.0.0.1(137) header: id=21161 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=TESTPC<00> rr_type=10 rr_class=1 ttl=0 Negative name query response, rcode 0x03: The name requested does not exist. name_query failed to find name TESTPC root@ubuntu:/opt# /opt/cs/bin/nmblookup -U localhost -R TESTPC
This can be achieved by editing wins.dat. This bug isnt really valid.