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 Cloud GPU instance using the Vultr Customer Portal, or API.
Navigate to Products and click Compute.
Click your target Cloud GPU 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 your new hostname.
Send a GET
request to the List Instances endpoint and note the target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a PATCH
request to the Update Instance endpoint and update the instance hostname.
$ curl "https://api.vultr.com/v2/instances/{instance-id}" \
-X PATCH \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"hostname" : "new-instance-hostname"
}'