Thoughts on dhcp-client automatically determining the hostname?
Glenn Satchell
Glenn.Satchell at uniq.com.au
Wed Jan 23 11:53:59 UTC 2008
>Date: Tue, 22 Jan 2008 14:54:34 -0800
>From: "David W. Hankins" <David_Hankins at isc.org>
>To: dhcp-users at isc.org
>Subject: Re: Thoughts on dhcp-client automatically determining the hostname?
>Content-Disposition: inline
>X-archive-position: 5478
>X-ecartis-version: Ecartis v1.0.0
>X-original-sender: David_Hankins at isc.org
>List-software: Ecartis version 1.0.0
>X-List-ID: <dhcp-users.isc.org>
>X-list: dhcp-users
>
>On Wed, Jan 23, 2008 at 08:16:32AM +1000, Andrew Pollock wrote:
>> send host-name configured;
>
>it's weird how this looks to someone who knows what the configuration
>internals look like. none of the code that evaluates that statement
>knows that it is processing a hostname by the time it reaches the
>'configured' part. it's just some DHCP option.
>
> send host-name = gethostname();
>
>making this an executable statement that is evaluated when...
>
Would this work?
send host-name = execute("uname", "-n");
regards,
-glenn
More information about the dhcp-users
mailing list