howto change hostname

Discussion in 'Installation/Configuration' started by gilas, Dec 6, 2011.

  1. gilas

    gilas Member

    Hi folks
    may be this is a stupid problem but I hope to find the right solution.
    Recently I bought a pre-installed ispconfig 3 (centOS 5.5) and the provider configured ISPConfig as follow:

    admin panel > system > server config > tab "server"

    domain: ispconfig.hostXXXXX.com
    nameservers: 192.168.0.1,192.168.0.2

    if I issue:

    hostname
    hostname -f

    the system returns me the domain associated to my server:
    www.mydomain.com

    I'm bit confused. With the configuration above, when PHP send an email the sender is: "[email protected]"
    I want the server configured as "[email protected]"

    My question is simple: should I configure IPSConfig3 changing:

    "ispconfig.hostXXXXX.com"

    to

    "www.mydomain.com"

    (the IP addresses "nameservers" are correct?)

    and so on .... there is somewhere else to change other data?!?

    Thank you very much...
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Its a bad idea to change that as it would mean that you can not have any email addresses for mydomain.com afterwards as the hostname of the system can not be the same then a domain name that is used for email.

    The hostname in the ispconfig server settings is only for ispconfigs internal use, so changing that has no influence on your server configuration. If you want to chaneg the server hsotname (which I dont recommend as described above), then you will have to chnage it on the shell in /etc/hosts and the centos network configuration program.
     

Share This Page