OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: dhclient and /etc/myname

From: Jason Opperisano (opie817west.com)
Date: Wed Dec 01 2004 - 17:37:43 CST


On Wed, Dec 01, 2004 at 11:15:00PM +0100, -f wrote:
> i would like to set the hostname to the one i get from the dhcp
> server. it is always something like x49.upc.chello.cz, etc.
> how can i do that? is there a hook in dhclient i could use
> to set the hostname? could this be done before starting
> the services so they don't complain (apache comes to my mind,
> and certainly sendmail)

man 5 dhclient.conf

should sufficiently quiet this thread.

if nothing pops out at you:

        request host-name;

-j

--
"Look, just give me some inner peace, or I'll mop the floor with ya!"
        --The Simpsons