From owner-freebsd-questions Fri Feb 22 11:57: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.utexas.edu (wb2-a.mail.utexas.edu [128.83.126.136]) by hub.freebsd.org (Postfix) with SMTP id B357737B43D for ; Fri, 22 Feb 2002 11:56:41 -0800 (PST) Received: (qmail 28390 invoked by uid 0); 22 Feb 2002 19:56:40 -0000 Received: from chepe.cc.utexas.edu (HELO oscar.mail.utexas.edu) (128.83.135.25) by umbs-smtp-2 with SMTP; 22 Feb 2002 19:56:40 -0000 Message-Id: <5.1.0.14.2.20020222135118.0254a0d0@mail.utexas.edu> X-Sender: oscars@mail.utexas.edu X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 22 Feb 2002 13:56:39 -0600 To: "GB" , freebsd-questions@freebsd.org From: Oscar Ricardo Silva Subject: Re: How do I change host/domain of a FreeBSD box? In-Reply-To: <001001c1bb97$1fe2fd30$0201a8c0@CITYMOUSE> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 Two ways you can do this: 1. Edit /etc/rc.conf hostname="foo.xyz.com" Edit /etc/resolv.conf domain xyz.com Edit /etc/hosts (extra step) 1.2.3.4 foo.xyz.com 2. Run /stand/sysinstall Configure Networking Interfaces xl0 (an example of an interface) And enter the correct information there Oscar At 05:50 AM 2/22/2002 -0600, GB, you wrote: >(Repost from a couple of days ago... no response earlier, and I haven't >been able to solve the issue myself, despite some fiddling with it.) > > >I need to change the host name and domain of my FreeBSD box. Elements of >the current configuration: > >* djbdns installed but NOT configured or started (other than setting up >the user accounts to eventually access it). > >* Ditto for apache, PHP, Perl 5.6.1, sendmail and mysql. > >I tried simply changing things in /etc/rc.conf... ended up with a >machine that would boot, but apache said it couldn't resolve the local >host name during startup (odd, since I hadn't configured apache, merely >installed it) and the machine ran as slow as molasses. Should I make >changes elsewhere as well? > >This is a brand new install, and we just decided to run it under a >different host/domain for administrative reasons.) > >Many thanks, >Greg B. > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message