Date: Fri, 22 Feb 2002 13:56:39 -0600 From: Oscar Ricardo Silva <oscars@mail.utexas.edu> To: "GB" <gregbrooks@blue-mouse.com>, freebsd-questions@freebsd.org Subject: Re: How do I change host/domain of a FreeBSD box? Message-ID: <5.1.0.14.2.20020222135118.0254a0d0@mail.utexas.edu> In-Reply-To: <001001c1bb97$1fe2fd30$0201a8c0@CITYMOUSE>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20020222135118.0254a0d0>