Re: My hostname not being registered via DHCP

From: Jim Patterson (jim-patterson_at_ncf.ca)
Date: 02/03/05


Date: Wed, 02 Feb 2005 23:42:46 -0500

UncleStoner wrote:
> Thanks for taking the time to reply.
>
> I should have provided more high-level detail in my original post. I'm
> actually on a corporate LAN, which hosts mostly windows boxes and whose
> various services (DHCP, DNS, etc) are presumably provided by Windows as
> well.
>
> I'm one of the few people in this environment trying to get a Linux box
> up. My Windows boxes all have hostnames that I assign them, and they
> all use DHCP. Somehow, they are able to get their names resolvable on
> the network. I assumed that they did this by sending their names to
> the DHCP server when they requested an IP (and all the other stuff a
> DHCP client requests from a DHCP server), and then the DHCP server did
> some magic, in conjunction with the DNS server, to make those hostnames
> resolvable.

DHCP and DNS is not likely how the Windows machines are discovering each
other; it's usuall based on NETBIOS naming (though Windows does use DNS
as well).

You should be able to do the same from your RH8 box wit a little work:

- Run SAMBA on your RH8 box. Just running the SAMBA server should be
enough to get it to broadcast your hostname so other Windows machines
will see it. However, you may need to do some configuration depending on
how your LAN is set up (check out the Samba docs or http://www.samba.org
for info).

- Set up your own name resolution mechanism to check "wins". You can do
this by editing the file /etc/nsswitch.conf . Look for a line like this:

        hosts: files dns

and add the token "wins" to the end e.g.

        hosts: files dns wins

At least, that works on FC3 and slackware 10. I don't know about Redhat
8. In any case, what it should do is add a "wins" resolver to the
resolver list for hostnames, so if the name resolver doesn't find a
network hostname in the hosts file or from DNS it will try WINS next.
You can check the man page for nsswitch.conf for more info.

Hope this helps!

Jim P.
Ottawa



Relevant Pages

  • Re: Strange IP conflict
    ... We are running a Windows 2000/3 network. ... One Windows 2000 SP4 DHCP ... I try to ping Machine A by name, the address I still get the ping ... a reservation for this machine on the DHCP server, ...
    (microsoft.public.windowsxp.general)
  • Re: My hostname not being registered via DHCP
    ... > actually on a corporate LAN, which hosts mostly windows boxes and whose ... > all use DHCP. ... > DHCP client requests from a DHCP server), and then the DHCP server did ... what it should do is add a "wins" resolver to the ...
    (linux.redhat)
  • Re: DNS-DHCP Question
    ... Windows 2003 Active Directory. ... When we changed the one subnet to DHCP, we left the box on the clients ... clients to update DNS when that cannot be done and will not be able to ... On the Properties sheet of the Windows Server 2003 DHCP server, ...
    (microsoft.public.windows.server.dns)
  • Re: DHCP Authorization
    ... AD is checked every time DHCP service starts. ... Microsoft MVP - Windows Security ... > checked every so often by a DHCP server to see if it is authorized? ... >> Authorizing DHCP Servers in Active Directory ...
    (microsoft.public.windows.server.networking)
  • Windows XP - DHCP Problem over WiFi
    ... My PC is a Windows XP SP2 laptop with integrated wireless ... DHCP server is a Windows 2k Server box ... I am also seeing the DHCP Offer packet from the DHCP server ... laptop does not send the DHCP Request packet back to the DHCP server. ...
    (microsoft.public.windowsxp.network_web)