Changing the hostname of your Debian 12 server is a straightforward process. Follow the steps below to configure it properly.


Step 1: Create an Instance

First, set up a Debian 12 server instance.

Access the Dashboard: Log in to your Shape.Host account and navigate to your Dashboard.

Click Create: Click the “Create” button in the top-right corner.

Select Instances: From the menu, choose “Instances” to begin creating a new server.

Shape.host Resources dashboard with Create > Instance highlighted.

Select Location: Choose a data center location closest to your target audience for better performance.

Shape.host instance form with the data center location selector highlighted.

Choose a Plan: Select a plan that meets your requirements, such as Standard or Memory-Optimized.

Choose an Image: Select Debian 12 as the operating system.

Shape.host instance form with the operating system image selector highlighted.

Authentication and Finalize: Choose your authentication method, either SSH keys or password, and click Create Instance.

Shape.host instance form with the Create Instance button highlighted.
  • Obtain IP Address
  • Once your instance is created, return to the dashboard.
  • Find your instance’s IP address under the Resources section and use it to access your server.
Shape.host Resources dashboard with the server IP address highlighted.

Step 2: Update the System

Update your system packages to ensure everything is up-to-date:

apt update  
apt upgrade -y  
Terminal showing APT package management commands and output.

Step 3: Check the Current Hostname

To view your system’s current hostname, run:

hostname  
Terminal showing hostname configuration or system identification details.

Step 4: Change the Hostname

Set your new hostname, for example, DebianXII:

hostnamectl set-hostname DebianXII  
Terminal showing hostname configuration or system identification details.

Step 5: Apply the Changes

Reload your group session to ensure the hostname changes take effect:

newgrp  
Terminal showing a newgrp shell command.

Step 6: Verify the New Hostname

Finally, confirm that the new hostname has been applied successfully:

hostnamectl  
Terminal showing hostname configuration or system identification details.

You’ve successfully updated your Debian 12 system’s hostname!

For reliable hosting solutions optimized for Debian servers, consider Shape.Host Linux SSD VPS. Their services offer excellent performance, scalability, and support for all your hosting needs.