Re: Setting up network
From: Daniel Bye (freebsd-questions_at_slightlystrange.org)
Date: 04/01/05
- Previous message: Giorgos Keramidas: "Re: From Rumiancev Alexander"
- In reply to: Anthony M. Agelastos: "Re: Setting up network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 1 Apr 2005 12:50:04 +0100 To: freebsd-questions@freebsd.org
On Thu, Mar 31, 2005 at 10:26:13PM -0500, Anthony M. Agelastos wrote:
> Hello all,
>
> While we are on the topic, after the hostname and domain have been
> setup from the initial installation, how can they be changed? I went
> through the FreeBSD manual and some Google searching and did not come
> up with anything that made any sense. I assume there are files to be
> edited, probably under /etc. I am just not sure what all of them are.
> Any assistance (or reference to a site that will explain this to me)
> will be greatly appreciated (I am a newbie to UNIX and especially
> 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
-- 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 / \
- application/pgp-signature attachment: stored
- Previous message: Giorgos Keramidas: "Re: From Rumiancev Alexander"
- In reply to: Anthony M. Agelastos: "Re: Setting up network"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|