Re: [Samba] LAN Browsing shows IP Addresses instead of Computer Names.

2003-06-18 Thread Mega Spaz
hmm looks like I'm gonna do it how I did it before and just add the ip 
address and computer name pairs in /etc/hosts and have my router assign 
static ip addresses.  Thanks for all the suggestions.  you guys are great.

Although, I'd still like to know how MS Network Neighborhood does it.  I 
don't want to set up my linux box as a server of any type since it's a 
laptop and is often taken out of the network when I travel.  I mean let's 
just say for the sake of argument, that i've got a linux machine and a 
windows 98SE computer.  How does Network Neighborhood get the computer name 
of my linux machine?  Since I'm know I didn't set up the windows computer 
with any DNS or WINS server.  but i'll go with what works for both. Any 
thoughts, please feel free to post 'em. =)

Sincerely,
Vince

From: Buchan Milne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: Mega Spaz [EMAIL PROTECTED]
Subject: [Samba] LAN Browsing shows IP Addresses instead of Computer Names.
Date: Tue, 17 Jun 2003 13:06:14 +0200
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 Message: 7
 Date: Sat, 14 Jun 2003 23:35:42 -0700
 From: Mega Spaz [EMAIL PROTECTED]
 Subject: [Samba] LAN Browsing shows IP Addresses instead of Computer
Names.
 To: [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; format=flowed

 I'm trying to figure out how I can have my lan browser display computer
 names instead of IP Addresses.  I think the ip addresses are generated
by my
 router since if I add a new computer, the ip addresses will be
different for
 each computer.  anyway let me give you the specs first.  Running Samba
 2.2.8a-1 on Red Hat 7.3.  I have not set up WINS or DNS at all.
That's your problem, reverse lookups need to work, either via DNS or
nss_wins (apparently it works without a WINS server, in which case it
used broadcasts).
I don't know is RH ships with a working nss_wins, if they do, it should
work by adding wins to the hosts line of your /etc/nsswitch.conf file.
BTW, setting up working reverse DNS would be a better solution, for
services that don't use get*ent, but direct DNS lookups.
 I have set
 up lisarc to use nmblookup.  I'm assuming that my network is using
 broadcasting to get computers in my LAN since i have not set up any
computer
 names in hosts or lmhosts.  The current set up works right now in that
 computers come up and can be browsed independant of the ip addresses
 assigned to the computers.  ie. if computer Tron is up on the network,
and
 then I boot up Sark, Sark will show up at the first next broadcast.
but the
 computers show up in konqueror as ip addresses, not as Tron and Sark.  
My
 very old first setup attempt had me manually adding ip addresses and
names
 manually in the /etc/hosts file.  but that would mess up the lan
browsing if
 another new computer was added to the network.  So if Sark is 
192.168.0.2
 and Tron is 192.168.0.3 and let's say my brother brings his laptop and
i put
 his laptop on the network, the ip addresses on the network will change 
to
 something like Sark = 192.168.0.3, Tron = 192.168.0.2 and my brother's
 laptop maybe something like Bros_comp = 192.168.0.4.  but the /etc/hosts
 file will have the old assignments which really messes up the browsing
part.
   Anyway right now i think i have it set up almost right since i can
browse
 the network and the computers on the network will be found no matter the
 time they are actually booted up, but ip addresses in the lan browsing
isn't
 very useful and I would like to see the computer names displayed in
the lan
 browsing in konqueror.  thank you for your patience, time, and any
help you
 can provide.

- --
|--Another happy Mandrake Club member--|
Buchan MilneMechanical Engineer, Network Manager
Cellphone * Work+27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+7vYlrJK6UGDSBKcRAtEQAJ9WoGfA34SrYpFl/IwkVOXUPpbyAQCeLrtG
ASziSnkS4UvBQE6GxW9YB1E=
=TamT
-END PGP SIGNATURE-
**
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
**
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] LAN Browsing shows IP Addresses instead of Computer Names.

2003-06-15 Thread Mega Spaz
I'm trying to figure out how I can have my lan browser display computer 
names instead of IP Addresses.  I think the ip addresses are generated by my 
router since if I add a new computer, the ip addresses will be different for 
each computer.  anyway let me give you the specs first.  Running Samba 
2.2.8a-1 on Red Hat 7.3.  I have not set up WINS or DNS at all.  I have set 
up lisarc to use nmblookup.  I'm assuming that my network is using 
broadcasting to get computers in my LAN since i have not set up any computer 
names in hosts or lmhosts.  The current set up works right now in that 
computers come up and can be browsed independant of the ip addresses 
assigned to the computers.  ie. if computer Tron is up on the network, and 
then I boot up Sark, Sark will show up at the first next broadcast.  but the 
computers show up in konqueror as ip addresses, not as Tron and Sark.  My 
very old first setup attempt had me manually adding ip addresses and names 
manually in the /etc/hosts file.  but that would mess up the lan browsing if 
another new computer was added to the network.  So if Sark is 192.168.0.2 
and Tron is 192.168.0.3 and let's say my brother brings his laptop and i put 
his laptop on the network, the ip addresses on the network will change to 
something like Sark = 192.168.0.3, Tron = 192.168.0.2 and my brother's 
laptop maybe something like Bros_comp = 192.168.0.4.  but the /etc/hosts 
file will have the old assignments which really messes up the browsing part. 
 Anyway right now i think i have it set up almost right since i can browse 
the network and the computers on the network will be found no matter the 
time they are actually booted up, but ip addresses in the lan browsing isn't 
very useful and I would like to see the computer names displayed in the lan 
browsing in konqueror.  thank you for your patience, time, and any help you 
can provide.

Sincerely,
Vince =)
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] LAN Browsing shows IP Addresses instead of Computer Names.

2003-06-15 Thread Mega Spaz
Thanks for the reply.  lemme go through your points and suggestions one by 
one. =)

1. I don't know where Diagnosis.txt is.  whereis and locate come up empty 
and I've done a file search in /etc and /usr.

2. Interested in this.  Any good places your recommend for this information? 
 That is, easy for a complete nimrod like me?

3. See #2

4. Do I really need to set up a WINS server?  Most of the time the network 
is just a windows 98 computer and this Linux computer.  although there maybe 
times, since the windows computer is a dual boot windows 98/windows NT 4.0, 
that I boot the windows computer into NT.  the Linux computer is also a dual 
boot of windows ME/ redhat 7.3.  I think there maybe some kind of conflict, 
if I've read things right, between the Linux computer and the other computer 
if booted into windows NT.  Any clarification on that would be greatly 
appreciated.

5. this is the resolve order from SWAT: lmhost host wins bcast

6. again see #2, if this is what a really have to do. =)

7. I could, but mucking about the router internally gives me the 
heebie-jeebies.  And basically, the if all the computers are booted into 
windows, the network works fine with the router config as is.  I don't 
understand why this would change for Linux.  but, I'm a newbie nimrod with 
Linux, so any explainations would be great.

Here's an nmblookup query.  it seems to me that the ipaddress and the 
NetBIOS name are returned.

[EMAIL PROTECTED] vjong]$ nmblookup han
querying han on 192.168.0.255
192.168.0.4 han00
Yes, this is one case where I would love to have Linux work like Windows and 
I think I'm close since computers that come up on the network are found and 
browseable, it's just that their computer names aren't being shown in 
Konqueror just the IP addresses.  I'm gonna try to add the computer names in 
/etc/lisarc and see if this works.  Thanks again for the suggestions and 
help. =)

Sincerely,
Vince

From: Joel Hammer [EMAIL PROTECTED]
To: Mega Spaz [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [Samba] LAN Browsing shows IP Addresses instead of Computer 
Names.
Date: Sun, 15 Jun 2003 08:57:44 -0400

I am no expert and am certainly rusty on this sort of question. Just some
ideas. I do not know if the suggestions below are really what you
need. However, how do you think that samba is supposed to do reverse
lookups to find the name corresponding to an ip number?
1. Have you walked through DIAGNOSIS.txt?

2. What is this router you have that keeps changing ip addresses? Very
inconvenient. It is not hard to set up a dhcp server on a linux box. The
nice part is that you can ensure that the  same ip number is given
every time to the same computer, using the identifying number on the 
network
card.

3. If you do #2, then you can use [lm]hosts files on both the linux and 
windows
boxes to associate names and ip addresses.

4. The easiest thing might be to install a wins server. This just involves
adding a few lines to smb.conf on one linux box. Here is what I have
in mine:
name resolve order = lmhosts wins bcast host
netbios name = JHAMMER6
os level = 100
preferred master = True
domain master = True
wins support = Yes
This makes this machine the wins server. Point your other machines,
to this one. This requires a wins server = parameter in the linux boxes and
you can muck around with the menus in windows to point to the wins server.
5. Maybe you have a bad name resolve order parameter? The meaning of the
options above is:
 lmhosts = /etc/hosts file
 wins= wins server
 bcast   = broadcast
 host= DNS lookup
Do you have the bcast option in your smb.conf file?
6. If you want to spend many happy hours, you might consider setting up a
DNS server, provided you have set up a DHCP server to ensure the same ip's
are given each time to the same computers.
7. Can you tell your router to always give the same number to each of
your computers?
Joel



On Sat, Jun 14, 2003 at 11:35:42PM -0700, Mega Spaz wrote:
 I'm trying to figure out how I can have my lan browser display computer
 names instead of IP Addresses.  I think the ip addresses are generated 
by my
 router since if I add a new computer, the ip addresses will be different 
for
 each computer.  anyway let me give you the specs first.  Running Samba
 2.2.8a-1 on Red Hat 7.3.  I have not set up WINS or DNS at all.  I have 
set
 up lisarc to use nmblookup.  I'm assuming that my network is using
 broadcasting to get computers in my LAN since i have not set up any 
computer
 names in hosts or lmhosts.  The current set up works right now in that
 computers come up and can be browsed independant of the ip addresses
 assigned to the computers.  ie. if computer Tron is up on the network, 
and
 then I boot up Sark, Sark will show up at the first next broadcast.  but 
the
 computers show up in konqueror as ip addresses, not as Tron and Sark.  
My
 very old first setup attempt had me manually adding ip addresses