How to update my VPS hostname. Print

  • hostname, vps
  • 103

At IncogNET, we randomly generate all VPS hostnames at time of ordering. If you have several servers in your account, this can get quite confusing when trying to determine which VPS is hosting what service.

From your VPS control panel:

Your hostname does NOT need to a FQDN. You can put anything there. "XMPP-Server", "Website1", "Netherlands-VPN" or whatever you'd like.

 

From your VPS, logged in via ssh:

sudo hostnamectl set-hostname example-server

Once you logout and log back in to SSH, you'll see your new hostname is reflected in the terminal. (Ex: root@new-hostname instead of root@srv-8BR92PV4 )


Was this answer helpful?

« Back

Powered by WHMCompleteSolution