Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2011 00:00:06 -0400
From:      Tim Dunphy <bluethundr@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: change hostname
Message-ID:  <AANLkTinnXnBBFmm8o_U5copyYtceSOyqsBVkjaf1sMum@mail.gmail.com>
In-Reply-To: <4D8FF9CF.7080208@gmail.com>
References:  <AANLkTi=Vw8dPiAxFfron5jdQnJV_iQdE%2B%2BNFvX6tSn5n@mail.gmail.com> <4D8FF9CF.7080208@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
that did it! thanks

On Sun, Mar 27, 2011 at 11:00 PM, Noel <noeldude@gmail.com> 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<LOOPBACK,RUNNING,MULTICAST> =A0metric 0 mtu 16384
>> =A0 =A0 =A0 =A0options=3D3<RXCSUM,TXCSUM>
>> =A0 =A0 =A0 =A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
>> =A0 =A0 =A0 =A0inet6 ::1 prefixlen 128
>> =A0 =A0 =A0 =A0nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV>
>> bge0: flags=3D8802<BROADCAST,SIMPLEX,MULTICAST> =A0metric 0 mtu 1500
>>
>> =A0options=3D8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LIN=
KSTATE>
>> =A0 =A0 =A0 =A0ether 00:14:22:38:9e:eb
>> =A0 =A0 =A0 =A0media: Ethernet autoselect (1000baseT<full-duplex>)
>> =A0 =A0 =A0 =A0status: active
>> plip0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> =A0metric 0 mtu 1500
>> Starting Network: lo0 bge0.
>> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> =A0metric 0 mtu 16384
>> =A0 =A0 =A0 =A0options=3D3<RXCSUM,TXCSUM>
>> =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<PERFORMNUD,ACCEPT_RTADV>
>> bge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> =A0metric 0 m=
tu
>> 1500
>>
>> =A0options=3D8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LIN=
KSTATE>
>> =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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinnXnBBFmm8o_U5copyYtceSOyqsBVkjaf1sMum>