From owner-freebsd-questions@FreeBSD.ORG Thu Mar 17 15:04:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2577516A4CE for ; Thu, 17 Mar 2005 15:04:50 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9034843D46 for ; Thu, 17 Mar 2005 15:04:49 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by rproxy.gmail.com with SMTP id b11so6971rne for ; Thu, 17 Mar 2005 07:04:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Bu6R2RmhAjowp55y0Hmc2Nc72c4dl8hCEuRvgkarCVIZwYGdydaorSIas7pzCteSbwC5Cvkw77VWlxGvRQKXo+StTGcgF+9Vhz1g6eFNFPARzFFKnKodakkRaLmwXRKYrTHGDvqjusa1itw1MXLsAumSRZo3g0yXTNhPDP+//yY= Received: by 10.38.162.43 with SMTP id k43mr1520875rne; Thu, 17 Mar 2005 07:04:45 -0800 (PST) Received: by 10.38.13.78 with HTTP; Thu, 17 Mar 2005 07:04:45 -0800 (PST) Message-ID: Date: Thu, 17 Mar 2005 15:04:45 +0000 From: Pietro Cerutti To: Lowell Gilbert In-Reply-To: <44oedixquh.fsf@be-well.ilk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <44oedixquh.fsf@be-well.ilk.org> cc: FreeBSD Subject: Re: problem due to hostname change X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pietro Cerutti List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 15:04:50 -0000 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 > > Be well. > However, thank you for your advice, but it didn't solve my problem... -- Pietro Cerutti Beansidhe - SwiSS Death / Thrash Metal Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?"