Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Apr 2005 12:50:04 +0100
From:      Daniel Bye <freebsd-questions@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Setting up network
Message-ID:  <20050401115003.GA21164@catflap.slightlystrange.org>
In-Reply-To: <5adc49922399d3d2b84b9f21fadcd415@asu.edu>
References:  <d2hrd9$e88$1@sea.gmane.org> <9e46c99e05033114133842921e@mail.gmail.com> <5adc49922399d3d2b84b9f21fadcd415@asu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 31, 2005 at 10:26:13PM -0500, Anthony M. Agelastos wrote:
> Hello all,
>=20
> While we are on the topic, after the hostname and domain have been=20
> setup from the initial installation, how can they be changed? I went=20
> through the FreeBSD manual and some Google searching and did not come=20
> up with anything that made any sense. I assume there are files to be=20
> edited, probably under /etc. I am just not sure what all of them are.=20
> Any assistance (or reference to a site that will explain this to me)=20
> will be greatly appreciated (I am a newbie to UNIX and especially=20
> FreeBSD).

In /etc/rc.conf, the variable $hostname sets the machine's name at
startup.  Simply edit the value set here, and next time the machine
starts up, the new hostname will be set.

To change it in a running system without rebooting, use hostname(1):

# hostname new.machine.name

HTH

Dan

--=20
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--CE+1k2dSO48ffgeK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCTTVrhvzwOpChvo8RAsXwAJ0emMs9E0fzoAt1i6iOX6WjvnvciACeIgqL
1HmXGJ40uIJXpr9/0N5pqoY=
=2CbD
-----END PGP SIGNATURE-----

--CE+1k2dSO48ffgeK--



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