From owner-freebsd-questions@FreeBSD.ORG Sat Oct 30 20:09:54 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 45819106566B for ; Sat, 30 Oct 2010 20:09:54 +0000 (UTC) (envelope-from timothyk@wallnet.com) Received: from mta6.srv.hcvlny.cv.net (mta6.srv.hcvlny.cv.net [167.206.4.212]) by mx1.freebsd.org (Postfix) with ESMTP id 1BD8F8FC0C for ; Sat, 30 Oct 2010 20:09:54 +0000 (UTC) Received: from tim-kellerss-macbook-pro.local (springfling73.org [96.57.143.21]) by mta6.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0LB400MDJDCGO240@mta6.srv.hcvlny.cv.net> for freebsd-questions@freebsd.org; Sat, 30 Oct 2010 16:09:53 -0400 (EDT) Date: Sat, 30 Oct 2010 16:09:52 -0400 From: Tim Kellers In-reply-to: To: Tim Dunphy Message-id: <4CCC7B90.6090807@wallnet.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 Cc: freebsd-questions@freebsd.org Subject: Re: hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Oct 2010 20:09:54 -0000 On 10/30/10 4:00 PM, 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. > > > thanks > edit /etc/rc.conf and enter: hostname="[put your hostname here]" change the [put your hostname here] to your actual hostname. And it will load the name on (re)boot. Tim Kellers