problem due to hostname change

José Nicolás Castellano jncastellano at noconname.org
Thu Mar 17 07:55:32 PST 2005


Pietro Cerutti wrote:

>FreeBSD 5.4-PRERELEASE #10: Wed Mar  9 15:40:46 UTC 2005
>    <my_name>@<old_hostname>:/usr/obj/usr/src/sys/GAHR
>  
>
This is the name of name and hostname who compiles  FreeBSD 
5.4-PRERELEASE #10 Kernel

Don't Worry about this.

>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>")
>  
>
/usr/local/etc/apache2/httpd.conf : modify Servername clause to your 
hostname to fix this error

>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?
>  
>
/etc/rc.conf : add line : hostname="your_hostname"

Simply

-- 
Jose Nicolas Castellano
Presidente - Asociación No cON Name
Tel:     +34 616 727 675
E-Mail  : jncastellano at noconname.org
WWW: www.noconname.org



More information about the freebsd-questions mailing list