From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 02:18:15 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 276191065673 for ; Mon, 28 Mar 2011 02:18:15 +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 E54708FC15 for ; Mon, 28 Mar 2011 02:18:14 +0000 (UTC) Received: by iwn33 with SMTP id 33so3878444iwn.13 for ; Sun, 27 Mar 2011 19:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=OFg+lpv9yHM9VER844PLDvKOfYhpNI4voag4L9Gs+gs=; b=EcqVAE+ZWW3lmjrX7/8fAM/aRORBX19lcSoH7ZOWfgYC8hTUFGVb+NeNYGe9/qtOYV 4Li7QrB1ouwDZMlzyKKyzIYXEQe0FoCKj9diDCDIu/GnjRV8gy3DEOUcRFP/7kmLiS67 O3nZGRs4cfFPNsC3YqaTwhdWxTQ3piGqwUE7c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lyTNlJi+qQfeO8WTsMrdLn3fHb8GYUXbmTrgDKbkNqhKLvUqEatLeR2LXSuUjN5+KK QqH05dA0tOCP86xxGoT8EPOsZ9ALXBzqRv3MDhkLMSd0OdoCfRyODk5ilKGg0hRyU+6P hw5tk2sRIJD5E/d11AqEizGO+5qEpSb98pTMY= MIME-Version: 1.0 Received: by 10.42.226.8 with SMTP id iu8mr1033487icb.249.1301278694490; Sun, 27 Mar 2011 19:18:14 -0700 (PDT) Received: by 10.42.222.7 with HTTP; Sun, 27 Mar 2011 19:18:14 -0700 (PDT) Date: Sun, 27 Mar 2011 22:18:14 -0400 Message-ID: From: Tim Dunphy To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 02:18:15 -0000 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! -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B