Re: [K12OSN] DHCP not sending hostnames to clients - solved

Richard Camp (rcamp@campworld.net)
Tue, 12 Mar 2002 20:59:36 -0800


I added the following line under the shared network scope in dhcpd.conf 
to solve the issue.

option host-name = concat("ws",binary-to-ascii(10,8,"", 
substring(reverse(1,leased-address),0,1)));

Each node now has a hostname set.  Mosix or any other local app that 
uses the hostname command now works.

Richard

Richard Camp wrote:

> I tried that in the global scope as well as the subnet scope.  All other services resolve a hostname.  Even booting a node to runlevel 3 for 
> shell access for testing nameserver tests works.  I've assumed that that this is not a major issue for this group so I also posted a 
> message on the ltsp-discuss mailing list.  The only time I see most people having trouble with this is when using local-app support.  
> Some software may want to use the hostname function to get their ip address.  I'm hoping I don't have to statically setup each client.
> 
> Richard
> 
> 
>>On Sun, 10 Mar 2002, Richard Camp wrote:
>>
>>
>>>When I boot a client it's hostname is not being set.  If I use the hostname option in dhcpd to send a test hostname it works.  My 
>>>configuration is the default as installed by the 2.0.1 CD.  I need the true hostname of the node to get mosix running.
>>>
>>>Richard
>>>
>>Can you try adding "get-lease-hostnames on;" towards the top of /etc/dhcpd.conf
>>and let me know if that does the trick?
>>
>>Be sure to restart dhcp after making the change, of course ;-)
>>
>>-Eric
>>
>>
>>
> 




_______________________________________________
K12OSN mailing list
K12OSN@redhat.com
https://listman.redhat.com/mailman/listinfo/k12osn
For more info see