Re: hostname and dhcp question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2006-06-30 at 13:38 +0800, Deepak Shrestha wrote:
> Hi,
> 
> I have fedora core 5 installed in one of my computer in LAN. One of
> the windows machine acts as the web server (internal) for the LAN but
> I can't figure out how to get the web page served by that machine in
> my fedora. Just typing the hostname ( http://hostname) doesn't work, I
> have to put the IP address to see the page. What's wrong with DHCP
> setting? and how to fix this?
> 
> By the way all computers in my LAN have dynamic address which is
> handled by DSL modem router. Other windows machine is behaving
> correctly, only fedora installation is not. What do I need to do? I
> also checked the network settings and found nothing to do with that as
> it has all automatic option checked. 
> 
> Thanks!
> 
Hi Deepak, 

I have a similar setup at home, and here's what I did:

1. Most DSL Router/Modems have some kind of web management facility. On
my Netgear wireless router, I first determine the MAC address of my
computers (I have only 3 computers, so it is quite easy), then tie one
IP address to each MAC address. My Netgear router also allows me to
assign it a hostname. However, because the Netgear router has no DNS
functionality, this feature is just for the router administrator (me!)
to know which system is which.

2. Next, I setup a DNS server so that the IP addresses get assigned some
meaningful name. If you have more than, say, 5 computers, you should
probably learn how to setup BIND DNS. Just read the excellent DNS HOWTO
and you'll be able to setup DNS yourself real quick.

3. If you have a small number of computers and/or you do not want to go
to all the trouble of learning to setup DNS, you can just create a
"hosts" file and put the IP addresses and names of all your computers on
that network in the file and make sure that all your computers have the
updated hosts file.

After that, if you have everything setup correctly, when the server
boots up, it will ask the router for an IP address; the router will see
its MAC address and assign it the IP address you defined earlier in the
web management console. Then, assuming that DNS is installed on that
server, named will start up and all your computers can automagically
find the web server.

Hope this helps.

-- 
Pascal Chong 
email:  chongym@xxxxxxxxxxxxxx 
web:    http://cymulacrum.net
pgp:    http://cymulacrum.net/pgp/cymulacrum.asc

"La science ne connaît pas de frontière parce que la connaissance
appartient à l’humanité. et que c’est la flamme qui illumine le monde."

-- Louis Pasteur

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux