Solved

How do I control the name seen by windows

Posted on 2004-03-27
6
246 Views
Last Modified: 2013-12-15
I installed debian, sarge it works as advertized.
I was a little surprised to find that my windows box on the same network could access the apache page with http://sarge
The reason I was surprised was that both sarge and win2k are both using my ISP's DNS.
I have no hosts file on win2k. Then I got to thinking that perhaps it was samba that was pushing out the name.
I did /etc/init.d/samba stop
rebooted win2k and sarge is no longer visable from win2k
started samba and sarge is back
Stopped samba again. Ran ipconfig /flushdns but sarge was still visable.

Why is this?
the hostname sarge is not in smb.conf
How do I control what name is visable to win2k and how do I turn that visablity on and off with out rebooting
0
Comment
Question by:davidpm
6 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
Make sure all wins related stuff is commented out in smb.conf
0
 

Author Comment

by:davidpm
Comment Utility
There is no Wins server on this network.

When I do samba stop on the linux box win2k looses sarge but only if I reboot win2k.

Dosn't sound like a wins issue.
0
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
There are wins entries in smb.conf Samba can be wins client or server. Its worth a check.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Accepted Solution

by:
Roach earned 50 total points
Comment Utility
It is not a wins issue in your case, it is an issue of server message block.  your isp DNS is tcp related.  This is netbios related within your lan.  DNS != netbios.  When samba is running the linux box is simply identifying itself via netbios.  Change the netbios name and your linux box will be something different on your lan.
0
 
LVL 5

Expert Comment

by:willy134
Comment Utility
samba will pass the hostname of the computer to the hostname it uses unless you specify one.  So if your computers hostname is sarge...then smb can use sarge as its name.
0
 

Author Comment

by:davidpm
Comment Utility
I answered my own question with the help of an admin from a client.
If you “/etc/init.d/samba stop” on the Linux machine then
nbtstat -R on the windows machine the linux netbios name will immediately disappear from the Windows machine.

/etc/init.d/samba start on the Linux machine and visability returns.
I did not try it but if you stop samba and just wait 2 to 10 minutes and the netbios cache will expire so you don’t have to do anything to make it disappear except wait.
dissapear.

Roach was on the right track so I gave him the points.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now