Link to home
Start Free TrialLog in
Avatar of Kien Kennedy
Kien Kennedy

asked on

Window accept Linux hostname?

My pc run Redhat 9.0, and connect to a pc Window XP via LAN.
I want in Window XP, I can see Redhat hostname, for exsample, I can run -> start -> \\<linux_hostname>, or ping <linux_hostname>.

In samba config file, I config workgroup in Redhat is same to Window XP, is "workgroup", and I use samba user, samba password for login samba protocol.

I don't know Window Xp know linux hostname via which config file: /etc/hosts, /etc/samba/lmhosts, or via hostname command, or others...
Note: I don't config DNS for Redhat.

Thanks!!!
ASKER CERTIFIED SOLUTION
Avatar of lhboi
lhboi
Flag of Viet Nam image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Darshan_Jadav
Darshan_Jadav

u need to add the Linux hostname in windows hosts and lmhosts file in all the machines u need to use, the best wat is to setup WINS/DNS on yr win infra.. makes life easier
Any of the above will do, but you can also try:
(in smb.conf)
netbios name=myredhatbox
os level=33
local master=yes
wins support=yes


save

service smb restart
Avatar of Kien Kennedy

ASKER

Thanks!
lhboi said that:
"WinXP searchs in C:\WINDOWS\system32\drivers\etc\hosts file to ping linux host name, and searchs in C:\WINDOWS\system32\drivers\etc\lmhosts for NetBIOS applications like start \\<linux-hostname>
So you need to add your RedHat IP address and name in those two files in each Windows machine."

But, this means user must add by hand, I want to config Window & Linux so that system add automaticly. There many times, I config in smb.conf and Window, Linux automaticly sharing info, data via LAN, but some times, it's false.

Thanks!