[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dhclient and /etc/myname
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: dhclient and /etc/myname
- From: -f <f_(_at_)_obiit_(_dot_)_org>
- Date: Mon, 6 Dec 2004 18:49:47 +0100
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org
hmm, on Thu, Dec 02, 2004 at 10:48:53AM +0000, John Wright said that
> But I have the impression that /sbin/dhclient-script would probably set the
> hostname and I don't see any code to do that and grep can't find sethostname
> in usr.sbin/dhcp/**.
i think you mean 'hostname' and not 'sethostname'.
no, it seems that it does not, and this is precisely what i am looking for.
and because this hostname can be different every time i turn on the
router, i would like to make it as automatic as possible.
the only thing coming to my mind right now is getting
the dhcp ip using ifconfig, dns query it and set that
name using hostname. or i could get the ip from the lease file
but this seems very cumbersome to me, and ugly as hell.
interestingly, the lease files do not contain the host-name,
only the domain-name....
does anyone has any other idea?
windows error: 004 erroneous error. nothing wrong.