Make host name work between Linux and Windows within LAN


I just installed Fedora Core 8, Apache 2.2.8 and PHP 5 as well.
Everything work fine, but I have one problem.

I can access to Fedora's web server via browser by typing through browser of Windows.

I need to access like http://fedora1 via browser of Windows.
And I configured /etc/hosts file as       localhost.localdomain   fedora1  localhost
This works only when I access via browser of Fedora.

Both computers are in same LAN and controlled by DHCP.
LAN IP ranges are - 110.

How do I make this work?

By the way VirtualHost directive of httpd.conf configured like
ServerName fedora1
ServerAlias fedora1

Thank you.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

change the hosts file on your winblows machine to point fedora1 to similar to what you did on the fedore machine.

I think this is the location on M$:
eb110kAuthor Commented:
Thank you for your response.
Window's hosts file must be modified in order to make this work?
I have no reason to not to modify the file, but I was wondering if there is anyway to make this work by changing something only on Fedora side.
If this is only way, I'll just give up and end this issue.

I've also tried (/etc/hosts):       localhost.localdomain   fedora1  localhost localhost.localdomain fedora1 localhost

But this didn't work.
Since my LAN is DHCP, it needs to ready for assigned IP range.

I appreciate if somebody advise me.
unless you are running a DNS server on your fedora machine which your windows machine resolves its queries through, how are you going to tell windows to look on your internal network?

The hosts file is the easiest way for you to accomplish what you want with out having to set up a FQDN or run dns and all that jazz.

Each machine will check the LOCAL hosts file to resolve IP's before trying a DNS server. If you are making a change to the fedora hosts file it will ONLY affect fedora.  The second line in your fedora hosts file is nonsense and should be removed. There is no such subnet as /199 see this link :

Try editing the windows hosts file and see what happens.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Duncan RoeSoftware DeveloperCommented:
It *should* be possible to configure a dhcp client (dhcpc) to tell the server what is the hostname. But... I have tried this many times and can't get it to work yet with Windows dhcp from Linux client. My home Linux LAN has static IPs so generally I've been trying it at work. At home, the Linux dhcp server does communicate Windows hostnames to the Linux dns (on same system).
I hope someone does know the answer to this - or I might have to do some serious experimenting this weekend :(or whenever I get time - could be a lot later than that)
eb110kAuthor Commented:
Thank you modcon_jscott.
It worked the way you instructed.
I was searching Yahoo and Google to  define IP address range for my DHCP on hosts file like key word "hosts file IP range DHCP", But I cannot find so far.

Is there anyway that I can define for IP range on the hosts file or I have go with static IP LAN?

Please advise.
Its pretty easy to set a static ip on linux,
ifconfig eth0 netmask up

This is a better solution than trying to define a subnet in a hosts file, which wont work anyway.

Heres a link for linux networking:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eb110kAuthor Commented:
Thank you for your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.