From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 17 15:12:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8449816A4CE for ; Thu, 17 Mar 2005 15:12:36 +0000 (GMT) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F2A343D2D for ; Thu, 17 Mar 2005 15:12:35 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j2HFCYml015176; Thu, 17 Mar 2005 09:12:34 -0600 (CST) (envelope-from anderson@centtech.com) Message-ID: <42399E59.5050806@centtech.com> Date: Thu, 17 Mar 2005 09:12:25 -0600 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pietro Cerutti References: <44oedixquh.fsf@be-well.ilk.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/766/Thu Mar 17 06:54:34 2005 on mh1.centtech.com X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Fwd: problem due to hostname change X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:12:36 -0000 Pietro Cerutti wrote: > Hi Hackers, > I posted this on freebsd-questions, but couldn't find a solution... > > Maybe here.... > > Thank you! > > > Please: don't Cc me, I'm on the list! > > > ---------- Forwarded message ---------- > From: Pietro Cerutti > Date: Thu, 17 Mar 2005 15:04:45 +0000 > Subject: Re: problem due to hostname change > To: Lowell Gilbert > Cc: FreeBSD > > > On 17 Mar 2005 09:57:26 -0500, Lowell Gilbert > wrote: > >>Pietro Cerutti writes: >> >> >>>Hi list, >>>my computer is not part of a domain, and so I had set my hostname to >>>. >>>Now I changed it in rc.conf to : >>> >>>~> cat /etc/rc.conf | grep hostname >>>hostname="" >>>~> >>> >>>I rebooted, but my pc is still somewhere configured to be called . >>>First of all, when the pc boots, I see this in dmesg: >>> >>>FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 >>> @:/usr/obj/usr/src/sys/GAHR >> >>That's not a problem; all it means is that's who built the kernel. It >>doesn't get used for *anything* other than printing that message. >> >> >>>Then, when I try to start apache, I see this in my >>>/var/log/httpd-error.log, and apache won't start: >>> >>>[Thu Mar 17 13:29:11 2005] [alert] mod_unique_id: unable to >>>gethostbyname("") >> >>You must have put the old hostname into Apache's configuration >>explicitly. You will need to change it by hand. The configuration >>file is (by default, as installed from the port) >>/usr/local/etc/apache/httpd.conf. > > > No, this is not the problem. I searched in httpd.conf but I didn't > find anything concerning my . > > I even deinstalled & deleted the configuration files & reinstalled apache. > > Don't forget this: > FreeBSD 5.4-PRERELEASE #10: Wed Mar 9 15:40:46 UTC 2005 > @:/usr/obj/usr/src/sys/GAHR > > Here I have my too. > > >>>My question is: how can I change my hostname to safely, >>>in a way that the is not used anymore in any part of >>>the OS? >> >>Changing rc.conf is enough for anything that was configured >>automatically. > > > It should be so, but it actually isn't. > > If you changed some other configuration by hand, you > >>will need to change it again by hand. Note that if you had not added >>your hostname to httpd.conf, Apache would have used the system >>hostname by default (I believe; I haven't actually checked this >>recently). > > > I'm sure I didn't set my anywhere else than in rc.conf What about /etc/hosts? Maybe try: grep oldhostname /etc/* Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology I have seen the future and it is just like the present, only longer. ------------------------------------------------------------------------