This article is outdated and may not work correctly for current operating systems or software.
Locate the IP address of your Vultr VPS and login as the root user.
/etc/hostname file with your favorite text editor. For example:
Update the hostname in this file. Then save the file, and exit the text editor.
/etc/hosts file with your favorite text editor. For example:
Change the first line and replace your old hostname with the new one. Save the file and exit the editor.
Run the following command to update your hostname:
Run the following command to check your new hostname:
The new hostname will be displayed in your ssh terminal.
Visit https://my.vultr.com/, then navigate to your VPS. Click on the IPv4 tab. You will see an "Update" button in the "Reverse DNS" column. Click this button to update the reverse DNS address. By default it will read:
It is common to replace
x.x.x.x.vultr.com with the DNS name of your server, which may be related to its hostname.