Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2002 18:09:00 -0700
From:      Nathan Kinkade <nkinkade@dsl-only.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        raiden@shell.core.com
Subject:   Re: Changing host name
Message-ID:  <20020520180900.522b3ab8.nkinkade@dsl-only.com>
In-Reply-To: <p05111718b90f3f1bbf23@[128.113.24.47]>
References:  <Pine.GSO.4.44L0.0205201647380.21576-100000@shell.core.com> <p05111718b90f3f1bbf23@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 May 2002 20:07:55 -0400
Garance A Drosihn <drosih@rpi.edu> wrote:

> At 4:50 PM -0500 5/20/02, Steven Lake wrote:
> >	I'm possibly needing to change the hostname of one
> >of the machines we have and I'm curious what all I have
> >to do, besides editing the rc.conf file
> 
> That's all you have to change, and then reboot.  You'd
> probably want to make sure that your DNS knows about that
> hostname for the IP address that the machine is using.
> 
> Strictly speaking the machine can run with whatever
> hostname it wants to, but some services (such as lpr,
> or sendmail) can get confused if the machine is using
> a hostname that is not the same as what DNS says the
> hostname should be...

You shouldn't need to reboot the machine.  However, after you change
your hostname in rc.conf you'll want to:# sysctl
kern.hostname="my_new_hostname"

Also, make sure that any daemons running are aware of your new hostname.
For example, you may need to make an update to httpd.conf, if you are
running Apache.  Depending, you may possibly need to update
sendmail...there could be others.  But as far as the OS is concerned you
should be good with a change in rc.conf (for subsequent reboots), and a
change to kern.hostname for the present.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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