From owner-freebsd-questions Mon May 20 18: 9:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by hub.freebsd.org (Postfix) with ESMTP id D6B5A37B409 for ; Mon, 20 May 2002 18:09:52 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.11.6/8.11.6) with SMTP id g4L190x51039; Mon, 20 May 2002 18:09:01 -0700 (PDT) (envelope-from nkinkade@dsl-only.com) Date: Mon, 20 May 2002 18:09:00 -0700 From: Nathan Kinkade 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: References: X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 20 May 2002 20:07:55 -0400 Garance A Drosihn 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