Hostname change

Discussion in 'Tips/Tricks/Mods' started by zutgorak, Apr 23, 2014.

  1. zutgorak

    zutgorak New Member

    Ok, asking here for clarity on an issue.

    I have an ispconfig3 running on "domain.tld"
    Now, i would like to move it to be "sub.domain.tld"

    Ive found some guides for it, but most have seemed to be a little old, like
    HTML:
    You will have to change the hostname in the following files -
    
    /etc/hosts
    /etc/postfix/main.cf
    /home/admispconfig/ispconfig/lib/config.inc.php
    /root/ispconfig/httpd/conf/httpd.conf
    /etc/hostname
    
    Then restart ISPConfig via '/etc/init.d/ispconfig_server restart'
    
    ..and then log into the ISPConfig control panel and navigate to management > server > settings and change the hostname there as well.
    What I am trying to make sure of is that this still applies, or are there more things to consider when doing this?
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    For changing hostname you have to do change hostname in


    /etc/hostname
    /etc/hosts
    /etc/mailname
    /etc/postfix/main.cf

    then run:

    /etc/init.d/hostname restart
    /etc/init.d/postfix restart

    Br//
    Srijan
     

Share This Page