How to Change the Hostname on a Vultr Cloud Compute Instance
-
by Blog Admin
- 10
How to Change the Hostname on a Vultr Cloud Compute Instance
Learn how to change the hostname on your Vultr Cloud Compute instance for proper system identification.
Changing the hostname on an instance modifies the default server configuration and reinstalls the operating system. This operation may results in data loss when the instance is reinstalled to apply the new hostname.
Follow this guide to change the hostname on a Vultr Cloud Compute instance using the Vultr Customer Portal, or Terraform.
Changing the hostname reinstalls the operating system and wipes all data on your server.
Vultr Customer Portal
- Navigate to Products and click Compute.
- Click your target Vultr Cloud Compute instance to open its management page.
- Navigate to the Settings tab.
- Find and click Change Hostname on the left navigation menu.
- Replace the existing value with your new hostname.
- Click Reinstall to change your instance hostname.
- Check the confirmation prompt and click Change Hostname to apply the new hostname.
Terraform
- Open your Terraform configuration for the existing Cloud Compute instance.
- Update the
hostname
value in the instance resource.terraformresource "vultr_instance" "cc" { # ...existing fields (region, plan, os_id, label, etc.) hostname = "new-hostname" }
- Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
How to Change the Hostname on a Vultr Cloud Compute Instance Learn how to change the hostname on your Vultr Cloud Compute instance for proper system identification. Changing the hostname on an instance modifies the default server configuration and reinstalls the operating system. This operation may results in data loss…
How to Change the Hostname on a Vultr Cloud Compute Instance Learn how to change the hostname on your Vultr Cloud Compute instance for proper system identification. Changing the hostname on an instance modifies the default server configuration and reinstalls the operating system. This operation may results in data loss…