tms3 at tms3.com
2011-Jan-13 02:53 UTC
[Samba] can connect to 2 samba servers by name but to one by IPonly
> > > Adding pdc1 to the hosts file (c:\windows\system32\drivers\etc\hosts) > did > not make a difference. After adding pdc1 to lmhosts, "net use > \\pdc1" did > work. So in the case of pdc1 one, the name is being resolved as a > netbios > name (i.e. via lmhosts) not a tcp/ip type name (i.e. via dns or hosts) > > But then why does "net use" work with all the other windows or samba > servers? As far as I can tell, DNS is the only method by which the > names > are being resolved. > > I did notice that "nbtstat -c" shows the followingWhat does nbtstat -r show?> > > > SonicWALL VPN Connection: > Node IpAddress: [x.x.x.x.] Scope Id: [] > > NetBIOS Remote Cache Name Table > > Name Type Host Address Life [sec] > ------------------------------------------------------------ > BDC1 <20> UNIQUE x.x.x.x.10 522 > BDC2 <20> UNIQUE x.x.x.x.11 560 > SOMEMACHINE <20> UNIQUE x.x.x.x.12 597 > > > > PDC1 is not in cache- which I guess makes sense since it is > explicitly > listed in lmhosts. > > > The "nbtstat -r" command only shows machine on my home network, > nothing on > the corporate network, so this really does indicate that there is no > netbios > broadcasts going on crossing the VPN link. > > > Thanks > > > > > -----Original Message----- > From: TAKAHASHI Motonobu [mailto:monyo at monyo.com] > Sent: Thursday, January 06, 2011 8:09 AM > To: gaiseric.vandal at gmail.com > Cc: samba at lists.samba.org > Subject: Re: [Samba] can connect to 2 samba servers by name but to one > by IP > only > > 2011/1/6 Gaiseric Vandal <gaiseric.vandal at gmail.com>: >> >> In fact this seems to work for any samba or windows >> machine on the network EXCEPT the Samba 3.4.x PDC. It seems to >> work > for >> >> Win 2003 machines, Samba 3.4.x member servers, XP machines, etc. > > To analyze the problem, first put the entry for PDC1 into both LMHOSTS > and > hosts files and try: net use \\pdc1. > > If you still meet the 67 error, something other than name resolution > will > cause > this problem. Look at the Samba log and network capture. > >> >> My understanding is that XP (and Win 2000/2003) machines are "smart" > enough >> >> to use DNS look ups to resolve a windows "netbios" name to IP in the >> case >> that legacy (archaic) "Netbios" name resolution (WINS, lmhosts, >> broadcast) >> methods don't work. > > NetBIOS name whose prefix is only #20 ,#00 (and #1C in some case) can > be resolved > by DNS. > > --- > TAKAHASHI Motonobu <monyo at samba.gr.jp> > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
TAKAHASHI Motonobu
2011-Jan-13 17:38 UTC
[Samba] can connect to 2 samba servers by name but to one by IPonly
2011/1/13 Gaiseric Vandal <gaiseric.vandal at gmail.com>:> Adding pdc1 to the hosts file (c:\windows\system32\drivers\etc\hosts) did > not make a difference. After adding pdc1 to lmhosts, "net use \\pdc1" did > work. So in the case of pdc1 one, the name is being resolved as a netbios > name (i.e. via lmhosts) not a tcp/ip type name (i.e. via dns or hosts) > > But then why does "net use" work with all the other windows or samba > servers? As far as I can tell, DNS is the only method by which the names > are being resolved.What does "nslookup PDC1" and "ping PDC1" show? If you have a host named "PDC1.example.com" then nslookup PDC1 may return the IP address of "PDC1.example.com", not the IP address of expected "PDC1". Anyway, you had better debug at the view of DNS name resolution, not Samba. --- TAKAHASHI Motonobu <monyo at samba.gr.jp>