On Thu, 2004-08-19 at 18:01, Jim McQuillan wrote:
> On Thu, 2004-08-19 at 16:17, Brian Payst wrote:
> > You can hand out hostnames as part of the DHCP process:
> > 
> >      host ws001 {
> >          hardware ethernet     00:00:00:00:00:00
> >          option root-path      "XXX.XXX.XXX.XXX:/opt/ltsp41/i386";
> >          fixed-address         XXX.XXX.XXX.XXX;
> >          filename              "/lts/2.4.26-ltsp-1/pxelinux.0";
> >      }
> > 
> > Also make sure there is a corresponding /etc/hosts or DNS entry for each 
> > host.
> 
> The above example passes a hostname to the client.  This way, the client
> knows its own name.  BUT, that doesn't mean that the server will know
> the hostname.  For the server to associate a name with the client, you
> need to make sure you either have the DNS Reverses setup properly,
> or you need to put the entries in the /etc/hosts file for each
> workstation.
> 
> What is even more confusing, is that the value you put into the
> /etc/hosts file can be different from the value that you put in
> /etc/dhcpd.conf.

One way to avoid the need to keep DNS and DHCP hostnames synchronized is
to use a host *name* with the fixed-address directive.  Instead of 
         fixed-address         XXX.XXX.XXX.XXX;
use
         fixed-address         ws001;

This will cause dhcp to look ws001 up via DNS.  While this slows dhcp
down a bit (long enough to do a single DNS lookup), it is only a problem
if your DNS server is overloaded.  If you do this, you only have to
maintain hostname-to-IP correspondences in DNS.
-- 
David Johnston <[EMAIL PROTECTED]>


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to