Re: Instructing dhclient to set hostname of client
- From: Brooks Davis <brooks@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Oct 2006 09:39:40 -0500
On Tue, Oct 24, 2006 at 09:16:07AM +0200, Harti Brandt wrote:
On Mon, 23 Oct 2006, Joe Holden wrote:
JH>Andrey V. Elsukov wrote:
JH>> Doug Barton wrote:
JH>>> If you're talking about a laptop where you're not sure what the DHCP
JH>>> server is going to send you, then I have this in /etc/rc.local:
JH>>
JH>> Hi, Doug.
JH>>
JH>> What you think about adding a new feature to dhclient - Alternate IP
JH>> Configuration. This configuration can be specified in dhclient.conf
JH>> and take effect when a DHCP server not respond. MS Windows have a
JH>> similar feature.
JH>>
JH>Really I was hoping dhclient would have this sort of functionality where
JH>it would resolve the ip given and set that as hostname, as as far as im
JH>aware, isc-dhcpd will not send hostnames?
Sure it does. On my machines I set hostname to "" in rc.conf and let
dhclient set it. Works fine.
Once upon a time I implemented some code to add a default_hostname
variable to rc.conf which was then used by the startup scripts and
dhclient-script to allow the local network to override the name if
desired while insuring that the system had a name at all times (required
for laptop use). I'd take patches to do this.
-- Brooks
P.S. hacking this into rc.local won't work longterm because addresses
will be assigned in a totally different context.
Attachment:
pgpODY0WyTrm1.pgp
Description: PGP signature
- Follow-Ups:
- Re: Instructing dhclient to set hostname of client
- From: Joe Holden
- Re: Instructing dhclient to set hostname of client
- References:
- Instructing dhclient to set hostname of client
- From: Joe Holden
- Re: Instructing dhclient to set hostname of client
- From: Doug Barton
- Re: Instructing dhclient to set hostname of client
- From: Andrey V. Elsukov
- Re: Instructing dhclient to set hostname of client
- From: Joe Holden
- Re: Instructing dhclient to set hostname of client
- From: Harti Brandt
- Instructing dhclient to set hostname of client
- Prev by Date: Re: Instructing dhclient to set hostname of client
- Next by Date: Re: Instructing dhclient to set hostname of client
- Previous by thread: Re: Instructing dhclient to set hostname of client
- Next by thread: Re: Instructing dhclient to set hostname of client
- Index(es):
Relevant Pages
|
|