Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2000 13:37:26 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Mark J Tomko <mtomko@prime.cs.ohiou.edu>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: Getting a hostname from DHCP
Message-ID:  <200002171837.NAA58115@server.baldwin.cx>
In-Reply-To: <20000217120433.A5685@prime.cs.ohiou.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On 17-Feb-00 Mark J Tomko wrote:
> I've been using FreeBSD on a network with DHCP since October and I've
> been trying to get it to read a hostname from the network automatically,
> but to no avail.  At the moment, I'm using 3.4.
> 
> I can determine my hostname by logging in to another system and typing
> "who", but locally, I have to set the hostname before the hostname
> command will return anything.  This was never a problem when I was using
> Linux, but with BSD I can't figure it out.

Put this in /etc/rc.conf:

hostname=""

> Any suggestions?
> 
> Thanks!
> 
> Mark

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002171837.NAA58115>