How to change Hostname same server [SOLVED]

Discussion in 'General' started by afrare, May 3, 2026.

  1. afrare

    afrare New Member

    Dear friends,

    I have server with ISPCONF 3 and I need change full hostname. The actual server name is 123.domain1.com to 123.domain2.com. and after create new certificate ssl to access https://123.domain2.com:8080

    Thanks for all

    Adriano
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    When 123.domain2.com exists in DNS, you can change the hostname with the usual OS command. You did not say what OS you are running so I can not offer help for that.
    Then check with this command to find configuration files where the old hostname is used, and change those to the new hostname:
    Code:
    cd /etc
    grep --recursive 123.domain1.com 
    Command may find backup files or other files that are not relevant, no need to change those.

    Then reboot and check with hostname -f the new hostname is shown.
    I'm not sure if resync from ISPConfig panel is needed, you might do it just because.
    To get certificate for the new hostname, do ispconfig_update.sh --force.
     
    ahrasis likes this.
  3. afrare

    afrare New Member

    thanks for all
     

Share This Page