From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 03:26:40 2011 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 5002B106566C for ; Mon, 28 Mar 2011 03:26:40 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0425F8FC17 for ; Mon, 28 Mar 2011 03:26:39 +0000 (UTC) Received: by ywf9 with SMTP id 9so1177684ywf.13 for ; Sun, 27 Mar 2011 20:26:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=qgk3nu+8myNfbD9wdaxthkqDXNyJLUsRpf6qEfQQz5E=; b=pyL/YIlhq+eZSNKDKC3K3FlOUPpaof/PF18gi60ACb1aJHp0QR0Zv4iL9FgqJ44Cvk oyM2rSxU387An8jVu0zlj2gqEqd6eV7FNtua2tQ3ANTYIMwB7q5zPrbdKkzO+8dwhhm5 e1Dt8Wk5p0pghp8tzyqLE6ifZ5Tl3ZGXl4l7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=vLUnmjFFP325eHqOUOsimz836zgqJgv0YzbZ8L4ryqf7+bzNiU/Wm53jmeaFjrqJuw wY5MaExngeaesTSR9SaY6c4VD/+KSGWyH2YBLUyaYExsiT0RZVN5aClq4YSw0VJkybND 6ag5nmYyG4fXjP7qo8J5vDgegUfhL1YlUk028= Received: by 10.150.98.17 with SMTP id v17mr3505029ybb.411.1301281236119; Sun, 27 Mar 2011 20:00:36 -0700 (PDT) Received: from [192.168.5.182] (adsl-87-211-27.bna.bellsouth.net [98.87.211.27]) by mx.google.com with ESMTPS id t5sm829472ybe.14.2011.03.27.20.00.33 (version=SSLv3 cipher=OTHER); Sun, 27 Mar 2011 20:00:34 -0700 (PDT) Message-ID: <4D8FF9CF.7080208@gmail.com> Date: Sun, 27 Mar 2011 22:00:31 -0500 From: Noel User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: change 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: Mon, 28 Mar 2011 03:26:40 -0000 On 3/27/2011 9:18 PM, Tim Dunphy wrote: > hey guys, > > I setup a FreeBSD 8.2 box to server as an LDAP server. I forgot that > I had a TLS cert with a different hostname than the one I selected. So > I edited /etc/rc.conf to change the name there > > defaultrouter="192.168.1.1" > hostname="LBSD2.summitnjhome.com" ##< -- used to be LBSD1.summitnjhome.com > ifconfig_bge0="inet 192.168.1.44 netmask 255.255.255.0" > nfs_client_enable="YES" > sshd_enable="YES" > named_enable="YES" > slapd_enable="YES" > > > And then edited /etc/hosts > > ::1 localhost localhost.summitnjhome.com > 127.0.0.1 localhost localhost.summitnjhome.com > 192.168.1.44 LBSD2.summitnjhome.com LBSD2 ##<-- used to be > LBSD1.summitnjhome.com > 192.168.1.44 LBSD2.summitnjhome.com. ##<<-- Same > > then i restarted the network > > LBSD2# /etc/rc.d/netif restart > Stopping Network: lo0 bge0 plip0. > lo0: flags=8048 metric 0 mtu 16384 > options=3 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > nd6 options=3 > bge0: flags=8802 metric 0 mtu 1500 > options=8009b > ether 00:14:22:38:9e:eb > media: Ethernet autoselect (1000baseT) > status: active > plip0: flags=8810 metric 0 mtu 1500 > Starting Network: lo0 bge0. > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=3 > bge0: flags=8843 metric 0 mtu 1500 > options=8009b > ether 00:14:22:38:9e:eb > inet 192.168.1.44 netmask 0xffffff00 broadcast 192.168.1.255 > media: Ethernet autoselect (none) > status: no carrier > > > However when I issue the hostname -f command it does not reflect the > change. It doesn't even show the fqdn > > LBSD2# hostname -f > LBSD2 > > What am I doing wrong, here? > > > thanks Try typing the command: # hostname LBSD2.summitnjhome.com