From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 04:00:08 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 72F02106564A for ; Mon, 28 Mar 2011 04:00:07 +0000 (UTC) (envelope-from bluethundr@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2B6DC8FC1D for ; Mon, 28 Mar 2011 04:00:06 +0000 (UTC) Received: by iwn33 with SMTP id 33so3953510iwn.13 for ; Sun, 27 Mar 2011 21:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=sfBrZCbomQF/zsszZHA2PaWvp2kmNRSlmkwHfkO8Iw4=; b=pJtL2A+lq10lYI5WcnJHBw/7FHwlWho41SIKlo0Xf3p6lUbmK+cHD01Wmrjp8GIHVF 5DhxtiG1YXbTyHNlI5pZzZRO44C3i9sGeblvfTbINQfeuwqfHYQVLKHNnkJWXFNTANsj d16Yfb4I43GCAle2TJBoYfE9CiDLCBnLpV8nA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=o0rmMTY9K8jwmnzYckGK6MbnO6Cl8ZsAMMejh3up9QXEyHQh6xdySyaG805AXAFc+/ VvRGdcrtkestbPaDIK0MyyFff2nE+UeaN3RcMnOJXDiAwhUjI93w2QbW7AIHf7qnMVIO pC0W18pJ1Dk2mnr7UXcu6ja0nHr79o4Q2dKj4= MIME-Version: 1.0 Received: by 10.42.200.133 with SMTP id ew5mr5814622icb.182.1301284806466; Sun, 27 Mar 2011 21:00:06 -0700 (PDT) Received: by 10.42.222.7 with HTTP; Sun, 27 Mar 2011 21:00:06 -0700 (PDT) In-Reply-To: <4D8FF9CF.7080208@gmail.com> References: <4D8FF9CF.7080208@gmail.com> Date: Mon, 28 Mar 2011 00:00:06 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 04:00:08 -0000 that did it! thanks On Sun, Mar 27, 2011 at 11:00 PM, Noel wrote: > On 3/27/2011 9:18 PM, Tim Dunphy wrote: >> >> hey guys, >> >> =A0I 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=3D"192.168.1.1" >> hostname=3D"LBSD2.summitnjhome.com" =A0##< =A0-- used to be >> LBSD1.summitnjhome.com >> ifconfig_bge0=3D"inet 192.168.1.44 =A0netmask 255.255.255.0" >> nfs_client_enable=3D"YES" >> sshd_enable=3D"YES" >> named_enable=3D"YES" >> slapd_enable=3D"YES" >> >> >> And then edited /etc/hosts >> >> ::1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 localhost localhost.summitnj= home.com >> 127.0.0.1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 localhost localhost.summitnjhome.c= om >> 192.168.1.44 =A0 =A0 =A0 =A0 =A0 =A0LBSD2.summitnjhome.com LBSD2 ##<-- u= sed to be >> LBSD1.summitnjhome.com >> 192.168.1.44 =A0 =A0 =A0 =A0 =A0 =A0LBSD2.summitnjhome.com. =A0##<<-- Sa= me >> >> then i restarted the network >> >> LBSD2# /etc/rc.d/netif restart >> Stopping Network: lo0 bge0 plip0. >> lo0: flags=3D8048 =A0metric 0 mtu 16384 >> =A0 =A0 =A0 =A0options=3D3 >> =A0 =A0 =A0 =A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >> =A0 =A0 =A0 =A0inet6 ::1 prefixlen 128 >> =A0 =A0 =A0 =A0nd6 options=3D3 >> bge0: flags=3D8802 =A0metric 0 mtu 1500 >> >> =A0options=3D8009b >> =A0 =A0 =A0 =A0ether 00:14:22:38:9e:eb >> =A0 =A0 =A0 =A0media: Ethernet autoselect (1000baseT) >> =A0 =A0 =A0 =A0status: active >> plip0: flags=3D8810 =A0metric 0 mtu 1500 >> Starting Network: lo0 bge0. >> lo0: flags=3D8049 =A0metric 0 mtu 16384 >> =A0 =A0 =A0 =A0options=3D3 >> =A0 =A0 =A0 =A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >> =A0 =A0 =A0 =A0inet6 ::1 prefixlen 128 >> =A0 =A0 =A0 =A0inet 127.0.0.1 netmask 0xff000000 >> =A0 =A0 =A0 =A0nd6 options=3D3 >> bge0: flags=3D8843 =A0metric 0 m= tu >> 1500 >> >> =A0options=3D8009b >> =A0 =A0 =A0 =A0ether 00:14:22:38:9e:eb >> =A0 =A0 =A0 =A0inet 192.168.1.44 netmask 0xffffff00 broadcast 192.168.1.= 255 >> =A0 =A0 =A0 =A0media: Ethernet autoselect (none) >> =A0 =A0 =A0 =A0status: 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 > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > --=20 GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B