Changing hostname on Ubuntu 20.04 LTS

Discussion in 'Installation/Configuration' started by Keoz, Jul 12, 2021.

  1. Keoz

    Keoz Member

    Hi,

    This tutorial to install ISP Config on distro Ubuntu 20.04 prompts to change the server default hostname to a subdomain name :
    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

    Should I previously go to my hosting account (OVH) and set an “A record“ in DNS for this subdomain, e.g “apptest.mydomain.net“ ?

    Regards
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, the subdomain used for the server must exist in DNS upfront of the installation if you want to get a free Let's encrypt SSL certificate for the server. Plus, you have to change the new hostname in the files /etc/hostname and /etc/hosts and reboot the server after you changed it. Then check with command:

    hostname -f

    if the new FQDN hostname apptest.mydomain.net is returned by the command. if yes, start the installation.
     
  3. Keoz

    Keoz Member

    Thank U
     

Share This Page