Change hostname

Discussion in 'General' started by dishon, Apr 12, 2017.

  1. dishon

    dishon New Member HowtoForge Supporter

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to change it on the shell.
     
  3. dishon

    dishon New Member HowtoForge Supporter

    Thank you. But I'm newbee. Can you please tell me what commands shoud I run to achive this?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The hostname has to be changed in /etc/hosts, /etc/mailname, /etc/hostname and /etc/postfix/main.cf and finally you should restart the server.
     
    ahrasis likes this.
  5. dishon

    dishon New Member HowtoForge Supporter

    Thank you. It works ;)

    In ISPConfig I also changed in System tab -> Server - Services Servername from server1.example.com to server1.mydomain.com.
     
    ahrasis likes this.

Share This Page