Date: Thu, 17 Mar 2005 13:34:33 +0000 From: Pietro Cerutti <pietro.cerutti@gmail.com> To: FreeBSD <freebsd-questions@freebsd.org> Subject: problem due to hostname change Message-ID: <e572718c050317053429bdd25e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi list, my computer is not part of a domain, and so I had set my hostname to <old_hostname>. Now I changed it in rc.conf to <new_hostname>: ~> cat /etc/rc.conf | grep hostname hostname="<new_hostname>" ~> I rebooted, but my pc is still somewhere configured to be called <old_hostname>. 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 <my_name>@<old_hostname>:/usr/obj/usr/src/sys/GAHR 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("<old_hostname>") My question is: how can I change my hostname to <new_hostname> safely, in a way that the <old_hostname> is not used anymore in any part of the OS? Thank you! -- Pietro Cerutti <pietro.cerutti@gmail.com> <http://www.gahr.ch/pgp-key> Beansidhe - SwiSS Death / Thrash Metal <www.beansidhe.ch> Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming or what?"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e572718c050317053429bdd25e>