Need to change the hostname name of server

Discussion in 'Installation/Configuration' started by edge, Sep 29, 2010.

  1. edge

    edge Active Member Moderator

    I need to change the hostname of one of my servers runnin Debian Lenny and ISPconfig3.

    Is it safe to do this on a server that has already some websites and email's on it?
    Do I only need to run:
    Code:
     
    /etc/init.d/hostname.sh stop
    echo new.servername.tld > /etc/hostname
    /etc/init.d/hostname.sh start
    and set the new hostname in the /etc/hosts file?

    Or do I need to change more things?
    Setting the reverse DNS will be done by mij ISP.
     
    Last edited: Sep 29, 2010
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, should not cause any problems.

    Check also the /etc/postfix/main.cf file for the hostname and the /etc/mailname file.

    Is this a multi- or singleserver setup?
     
  3. edge

    edge Active Member Moderator

    It's a singleserver setup.
    What about Postfix and Courier? Do I need to change anything in here?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    For Postfix, see Till's post. For Courier, there shouldn't be anything to change. :)
     

Share This Page