problem due to hostname change
Pietro Cerutti
pietro.cerutti at gmail.com
Thu Mar 17 05:34:34 PST 2005
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 at 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?"
More information about the freebsd-questions
mailing list