Hello, I am trying to use smbclient to send some information in a pop-up window on connected PCs. We have no lmhosts file, nor we have any WINS server. The DNS on the Unix server should be used to resolve names. With following entries in smb.conf : dns proxy = no name resolve order = lmhosts host wins bcast smbclient206 ( From Samba distribution 206) works perfectly: # echo hello | smbclient206 -d3 -M cdc-pc37 -Uadmin added interface ip=164.15.128.7 bcast=164.15.128.255 nmask=255.255.255.0 added interface ip=134.184.129.7 bcast=134.184.129.255 nmask=255.255.255.0 Client started (version 2.0.6). resolve_lmhosts: Attempting lmhosts lookup for name cdc-pc37<0x20> resolve_hosts: Attempting host lookup for name cdc-pc37<0x20> Connecting to 164.15.250.37 at port 139 Connected. Type your message, ending it with a Control-D sent 7 bytes smbclient (from Samba 2.0.10 ) DO NOT work: it don't even try to use DNS. # echo hello | smbclient -d3 -M cdc-pc37 -Uadmin added interface ip=164.15.128.7 bcast=164.15.128.255 nmask=255.255.255.0 added interface ip=134.184.129.7 bcast=134.184.129.255 nmask=255.255.255.0 Client started (version 2.0.10-VRTS). resolve_lmhosts: Attempting lmhosts lookup for name cdc-pc37<0x3> resolve_wins: Attempting wins lookup for name cdc-pc37<0x3> resolve_wins: WINS server resolution selected and no WINS server present. resolve_bcast: Attempting broadcast lookup for name cdc-pc37<0x3> bind succeeded on port 0 Unable to resolve name cdc-pc37 I have tried with 'dns proxy = yes' and many other parameters with the same failure. Any explanation for that behaviour? What has changed between 2.0.6 and 2.0.10 in that matter? Thanks in advance. Marie-Francoise ???????????????????????????????????????????????????????????????????????? Marie-Francoise Devillers-Thiry - System . Brussels Free Universities Computer Center (ULB)- CP 197. 50,Av. F.D. Roosevelt, B-1050 Brussels, BELGIUM. Email : MF.Devillers@ulb.ac.be Tel : ++32 2 6503728 Fax : ++32 2 6503740
On Tue, 9 Oct 2001, Marie-Francoise Thiry wrote:> smbclient206 ( From Samba distribution 206) works perfectly: > # echo hello | smbclient206 -d3 -M cdc-pc37 -Uadmin > added interface ip=164.15.128.7 bcast=164.15.128.255 nmask=255.255.255.0 > added interface ip=134.184.129.7 bcast=134.184.129.255 nmask=255.255.255.0 > Client started (version 2.0.6). > resolve_lmhosts: Attempting lmhosts lookup for name cdc-pc37<0x20> > resolve_hosts: Attempting host lookup for name cdc-pc37<0x20> > Connecting to 164.15.250.37 at port 139 > Connected. Type your message, ending it with a Control-D > sent 7 bytesThis one is broken I believe (although you may disaree). Please seen the man page entry for "name resolve order" The host entry should onlky be used when resolving service access points (i.e. <0x20>) names. cheers, jerry --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
> smbclient (from Samba 2.0.10 ) DO NOT work: it don't even try to use DNS. > # echo hello | smbclient -d3 -M cdc-pc37 -Uadmin > added interface ip=164.15.128.7 bcast=164.15.128.255 nmask=255.255.255.0 > added interface ip=134.184.129.7 bcast=134.184.129.255 nmask=255.255.255.0 > Client started (version 2.0.10-VRTS). > resolve_lmhosts: Attempting lmhosts lookup for name cdc-pc37<0x3> > resolve_wins: Attempting wins lookup for name cdc-pc37<0x3> > resolve_wins: WINS server resolution selected and no WINS server present. > resolve_bcast: Attempting broadcast lookup for name cdc-pc37<0x3> > bind succeeded on port 0 > Unable to resolve name cdc-pc37Sorry. Sent to soon. You may also want to look at the -I switch from smbclient as a workaround. cheers, jerry -- --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--