From owner-freebsd-questions@FreeBSD.ORG Sat Oct 30 20:07:33 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E6FD1065672 for ; Sat, 30 Oct 2010 20:07:33 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id C26248FC17 for ; Sat, 30 Oct 2010 20:07:32 +0000 (UTC) Received: from r55.edvax.de (port-92-195-16-227.dynamic.qsc.de [92.195.16.227]) by mx02.qsc.de (Postfix) with ESMTP id 2BECB1E26C; Sat, 30 Oct 2010 22:07:30 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o9UK7USo002319; Sat, 30 Oct 2010 22:07:30 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sat, 30 Oct 2010 22:07:30 +0200 From: Polytropon To: Tim Dunphy Message-Id: <20101030220730.e929f9b1.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 20:07:33 -0000 On Sat, 30 Oct 2010 16:00:39 -0400, Tim Dunphy wrote: > how can I set the hostname so that it persists through reboots? I have > set the hostname I want in /etc/hosts but rebooting the change does > not show up. In CentOS you have /etc/hostname which serves this > purpose but in FreeBSD I don't know how to do this. Put this setting into /etc/rc.conf: hostname="blah.foo.bar" Of course with your desired hostname. :-) See "man rc.conf" and "man hosts" for details about the function of those files; see also /etc/defaults/rc.conf for other options that may be interesting in this concern. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...