Changing the default hostname on an instance modifies the default server configuration and reinstalls the operating system.
Follow this guide to change the hostname on a Vultr Bare Metal instance using the Vultr Customer Portal, or Terraform.
Open your Terraform configuration for the existing Bare Metal instance.
Update the hostname
value in the instance resource to the new hostname.
resource "vultr_bare_metal_server" "bm1" {
# ...existing fields (region, plan, label, os_id, etc.)
hostname = "new-hostname"
}
Apply the configuration and observe the following output:
Apply complete! Resources: 1 added, 0 changed, 1 destroyed.
No comments yet.