Re: hostname and dhcp question



Tim wrote:
On Fri, 2006-06-30 at 13:38 +0800, Deepak Shrestha wrote:
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.

Okay, why and how does it work with the other machines? Do they have
their own hosts file with the webserver's numerical IP and named
addresses? (Not a good idea with dynamic DHCP-set addresses, but fine
if you set your DHCP server to always provide the same addresses to the
same machine - static addressing.) Is Windows doing some other
tomfoolery to try and figure out name resolution?

Does your modem/router's DHCP server update a DNS server with the
addresses, and are all your computers configured to use that DNS server?
They should all be configured to use the same DNS server, but it's been
my experience that modem/routers don't act as a local DNS servers for
the machines that they dole out addresses to using DHCP. Say what model
modem/router you have, someone might know how it works, in particular.

In my case, I don't use my modem/router as neither my DHCP nor DNS
servers, I do that on a Fedora-running PC behind it. I can control a
computer-based server exactly how I want to, the router controls are
very limited.

I'm not an expert, but by how I've always understood it, Windows machines use DNS entries, hosts file entries, and *NetBIOS* name broadcasts to look up other computers. So, your hostname on your windows webserver is found by the other windows machines because they're looking up the NetBIOS name, but Linux doesn't search NetBIOS to find IP addresses. I bet if you did an 'nmblookup hostnamehere' (where hostnamehere is the name of the windows box), the Linux computer would be able to find it. The way to fix that is to do what others are suggesting and either give the windows server a static IP (which is usually suggested for a server) or to get the DHCP server to register the computer with a DNS server.

Hope this clarifies your problem.

Justin Willmert

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Can Internet Computers see my private address DNS server?
    ... I have not placed any of our computers in the NAT router's DMZ. ... It is my intent, eventually, to turn the client with the Win Server 2003 ... and there are 6 clients. ... address is entered in the Alternate DNS server: ...
    (microsoft.public.windows.server.dns)
  • Re: Controlling access to web through DNS server
    ... >his office looking at a DNS server which is also their exchange server. ... >policies to computers connected inside the network and also restrict some of ... >as their DNS server they can go out and surf the web, etc, that is what I ... Andrew Hodgson in Bromyard, Herefordshire, UK. ...
    (microsoft.public.windows.server.dns)
  • Re: Computers Kicked off of Domain
    ... The computers are able to login locally ... Event logs give you any clues on the workstations & server? ... no public DNS server IP listed in *any* server or computer's ipconfig. ...
    (microsoft.public.windows.server.general)
  • Wide area failures?
    ... I have a question about the DHCP and the DNS server: ... Assume a company running their own DNS on a windows 2003 server. ... The Wireless network is mapped internally to another private netowork, ... the computers visible. ...
    (microsoft.public.windows.server.dns)
  • Re: Group Policy not running across domain.
    ... configured to look to the local server and then the server at the main office. ... Are the clients using their local DNS server? ... Check connectivity, FW configuration, DNS configuratio and check if ... the Active Directory Users and Computers snap-in. ...
    (microsoft.public.windows.server.active_directory)