Hi guys,
i changed the hostname through directadmin and issued a hostname command through ssh. the hostname changed prefectly. in order to make sure everything is correct, i rebooted the box through directadmin. once rebooted, the hostname reverted back to the initial hostname defined during setup.
my /etc/hosts now look like this
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain
myip oldhostname.mydomain.com
myip newhostname.mydomain.com
any idea whats wrong with this and how to fix this?
thanks a lot
i changed the hostname through directadmin and issued a hostname command through ssh. the hostname changed prefectly. in order to make sure everything is correct, i rebooted the box through directadmin. once rebooted, the hostname reverted back to the initial hostname defined during setup.
my /etc/hosts now look like this
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain
myip oldhostname.mydomain.com
myip newhostname.mydomain.com
any idea whats wrong with this and how to fix this?
thanks a lot