• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

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!!!
0
Kien Kennedy
Asked:
Kien Kennedy
1 Solution
 
lhboiCommented:
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.
Regards,
Boi Le
0
 
Darshan_JadavCommented:
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
0
 
bmquintasCommented:
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
0
 
Kien KennedyAuthor Commented:
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!

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now