Changing system hostname

gcypher

Verified User
Joined
Jun 28, 2005
Messages
159
Location
The Netherlands
Hi,

I am seriously in doubt about changing the systems hostname in /etc/hosts from:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 fedora localhost.localdomain localhost
82.192.81.36 fast-xs.net


to


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 fedora localhost.localdomain localhost
82.192.81.36 lws1.fast-xs.net


Note that my system is up and running bla bla .. But would the change have any serious affect on the funcionality of the server ? i know mysql could go down because of the pid file .. but would be ok after a restart ?

does someone have any experience on this ? :D

Thanks in advance
 
Hi, No this doesn't have effect on your server. You can change it without problems.

Maybe it will be displayed with your old name and then you can change it also in your kernel like:

echo lws1.fast-xs.net > /proc/sys/kernel/hostname

In both ways you have to restart apache:

service httpd restart

succes with it.
 
Can you not use the hostname.sh in /usr/local/directadmin/scripts?

Cheers
Ry
 
Thanks for the reply,

i just changed the line in /etc/hosts
its all good but it seems theres something going on with the root alias being delivered as mail.

2006-06-08 21:05:01 1FoPoT-0004gv-Iv ** [email protected]: retry timeout exceeded
2006-06-08 21:05:01 1FoPoT-0004h2-SR <= <> R=1FoPoT-0004gv-Iv U=mail P=local S=1481 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2006-06-08 21:05:01 1FoPoT-0004h2-SR == [email protected] R=system_aliases defer (-17): error in redirect data: malformed address: bin: root daemon: root ftp: root may not follow [email protected] in "[email protected] bin: root daemon: root ftp: root nobody: root operator: root uucp: root" 2006-06-08 21:05:01 1FoPoT-0004h2-SR ** [email protected]: retry timeout exceeded
2006-06-08 21:05:01 1FoPoT-0004h2-SR [email protected]: error ignored
 
Back
Top