Changing hostname from domain.com to ns1.domain.com

Discussion in 'Installation/Configuration' started by ginner159, Jun 27, 2013.

  1. ginner159

    ginner159 New Member

    hi all and thanks for all the help!!

    i have a vps hosted using a solusVM which is running ispconfig 3 and debian 6.
    When i first got it i just set the HOSTNAME as mydomain.com but now ive purchased a small 128mb server which im using as a ns2.mydomain.com which i setup with that hostname and have got it connected successfully to the first server.

    What im wanting to know is, what do i need to change so the mydomain.com hostname is ns1.mydomain.com and ensure that postfix ispconfig dns etc still works and the other server can still connect (dont mind reinstalling the ns2 as its just a nameserver if needed)

    I followed the setup tutorial here (debian 6 perfect server) initially then this(roll ya own dns) when adding my seccond server
     
  2. id10t

    id10t Member

    Which hostname(s) did you change/set? The one in /etc/hostname or in the mail configs, web address, etc? Or is it your DNS servers only?
     
  3. ginner159

    ginner159 New Member

    I haven't changed it yet as I've been waiting for a reply on what to do. And it's for my main server
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The hostname has to be cahnge din these files:

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

    then run:

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

    Airbag888 New Member

    On Debian Wheezy I had to do /etc/init.d/hostname.sh start

    Everything else worked :)
     

Share This Page