Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mounting samba shares - how do I get netbios name resolutio
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mark_lagace
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2002
Posts: 77
Location: Ottawa, Canada

PostPosted: Mon Nov 25, 2002 3:19 am    Post subject: Mounting samba shares - how do I get netbios name resolutio Reply with quote

I have a couple of systems, one running WinXP, another running Gentoo (obviously). The windows machine is called "VLADIMIR", and my wife's windows XP machine can see it fine in the network neighborhood, and can access the shared folders without any trouble.

When I attempt to mount a shared directory (named 'heidi') with the command:

mount -t smbfs //vladimir/heidi /mnt/samba

it fails rather miserably.

I decided to look into it a bit more with the smbclient command. Take a look at this:

Code:
grandpoobah root # smbclient //vladimir/heidi
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
timeout connecting to 80.14.47.204:139
Error connecting to 80.14.47.204 (Operation already in progress)
Connection to vladimir failed
grandpoobah root #


Hmm, rather odd? It seems to be trying to connect to 80.14.47.204. So I tried the next command, using the current lan ip address of my windows box:

Code:
grandpoobah root # smbclient //192.168.0.15/heidi
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
session request to 192.168.0.15 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[LOKIHOME] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> dir
  .                                   D        0  Fri Nov 15 11:10:04 2002
  ..                                  D        0  Fri Nov 15 11:10:04 2002
  Data                                D        0  Sun Sep 15 12:48:05 2002
  Games                               D        0  Sun Sep 15 12:56:18 2002
  Heidi computer drivers              D        0  Fri Nov  1 23:44:14 2002
  linux                               D        0  Sat Nov 23 20:05:38 2002
  Temp                                D        0  Thu Oct  3 21:21:41 2002
  unsafediscv1.5.5                    D        0  Tue Oct 22 10:40:15 2002
  unsafediscv1.5.5.zip                A    13013  Sun Oct 20 21:38:06 2002

                56666 blocks of size 262144. 42647 blocks available
smb: \>


Bingo! It works. Why? How do I get samba to properly resolve the 'Windows' name of my computer so I don't have to type in the IP address each time (since I've got the IP assigned by DHCP and theoretically it could change).

Any help would be greatly appreciated.

Mark.
Back to top
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Mon Nov 25, 2002 4:58 am    Post subject: Reply with quote

I made my XP machines' IP's and names as entries in hosts before I tried this. According to a post on another thread, I thought it was required. Whether or not, it worked (and has) correctly since.
Back to top
View user's profile Send private message
mark_lagace
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2002
Posts: 77
Location: Ottawa, Canada

PostPosted: Mon Nov 25, 2002 7:24 pm    Post subject: Added to /etc/hosts Reply with quote

I've editted my DHPCd config to assign static IPs to my two windows machines, and added their entries into the /etc/hosts file and that does work.

That being said, there should be a way for smbmount (or mount -t smbfs) to look for a particular computer's name on the network. I keep thinking it might have something to do with setting the 'workgroup', but I don't know where that is defined on my linux system (other than in smb.conf, but that seems to be more related to sharing folders etc on my linux machine so that my windows machines can see them, rather than the other way around).
Back to top
View user's profile Send private message
mark_lagace
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2002
Posts: 77
Location: Ottawa, Canada

PostPosted: Mon Nov 25, 2002 7:32 pm    Post subject: hmmm Reply with quote

I think I've found out part of my problem. I use dyndns.org to have a dns name for my computer. When I attempt to mount a file share with samba, rather than assuming the computer name I give it is a netbios name, it translates that into (computername).dyndns.org and attempts to contact that computer to mount file shares.

Any ideas how I can get this to change?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum