Changing the hostname of a VMware ESXi host is a task you will encounter when building out new infrastructure, replacing servers, or correcting naming conventions. While straightforward, it requires care in production environments as it affects DNS resolution, vCenter connectivity and SSL certificates. This guide covers all three methods — ESXi Host Client, vSphere Web Client and command line — for ESXi 7.0 and ESXi 8.0 in 2026.
Before You Begin
- If the host is part of a vCenter cluster, put it into Maintenance Mode first to prevent VM disruption
- Update your DNS A and PTR records before or immediately after the rename
- Note the current hostname — run
esxcli system hostname getvia SSH to confirm - If the host has a CA-signed SSL certificate tied to the hostname you will need to regenerate it after the change
- Inform your monitoring team as the host will temporarily appear disconnected
Method 1 — Change Hostname via ESXi Host Client (Recommended)
The ESXi Host Client is the browser-based management interface built into every ESXi host. This is the simplest method and does not require vCenter.
- Open a browser and navigate to
https://[esxi-ip-address]/ui - Log in with your root credentials
- In the left navigation go to Manage → Networking → TCP/IP Stacks
- Select the Default TCP/IP Stack and click Edit settings
- Under DNS Configuration select Use the following DNS server addresses and hostname
- Enter the new hostname in the Hostname field — use the FQDN format (e.g. esxi01.domain.com)
- Update the Domain field if required
- Click Save
- Restart the management network: go to Manage → Networking → VMkernel NICs, select vmk0, click Edit settings → OK to force a refresh, or use the command line method below
Method 2 — Change Hostname via vSphere Web Client
If your ESXi host is managed by vCenter, you can change the hostname directly from the vSphere Web Client without needing to connect to the host directly.
- Open vSphere Web Client and connect to your vCenter Server
- Select the ESXi host from the inventory panel
- Go to Configure → Networking → TCP/IP Configuration
- Select Default TCP/IP Stack and click the pencil icon to edit
- Under DNS Configuration, select Enter settings manually
- Update the Host name field with the new hostname
- Update the Domain field if required
- Click OK to save the changes
- Restart the management network for the change to take effect
Method 3 — Change Hostname via ESXi Shell (Command Line)
The command line method is the most reliable and is preferred when automating hostname changes across multiple hosts or when the Host Client is inaccessible.
- Enable SSH on the host: Host Client → Manage → Services → TSM-SSH → Start
- Connect via SSH using PuTTY or your preferred SSH client
- Run the following commands:
# Set the short hostname
esxcli system hostname set --host=esxi01
# Set the fully qualified domain name
esxcli system hostname set --fqdn=esxi01.domain.com
# Verify the change
esxcli system hostname get
Restart the Management Network
# Restart the management network interface to apply the change
/sbin/restart_mgmt_interface.sh
After Changing the Hostname
- Update DNS — update the A record and PTR record for the host in your DNS server
- Reconnect in vCenter — if the host shows as disconnected in vCenter, right-click it and select Connect
- Regenerate SSL certificate — Host Client → Manage → Security → Certificates → Renew. This is required if the old certificate referenced the old hostname
- Update monitoring tools — update any SCOM, PRTG or other monitoring agents that reference the old hostname
- Update backup agents — Veeam and other backup tools that target the host by hostname will need updating
- Remove from maintenance mode — once you have verified connectivity and DNS, take the host out of maintenance mode
Verify the Change in ESXi
# Verify hostname via ESXi shell
esxcli system hostname get
# Expected output:
# Domain Name: domain.com
# Fully Qualified Domain Name: esxi01.domain.com
# Host Name: esxi01
Frequently Asked Questions
Do I need to put the ESXi host in maintenance mode to change the hostname?
It is strongly recommended in production environments with running VMs. Maintenance mode migrates VMs via vMotion before you make changes, preventing any disruption. On a standalone host with no VMs running, maintenance mode is not strictly required.
Will changing the ESXi hostname disconnect it from vCenter?
It may temporarily disconnect from vCenter if vCenter connects to the host using its hostname rather than IP address. After the change and DNS update, reconnect the host in vCenter by right-clicking it and selecting Connect.
Should I use a short hostname or FQDN for ESXi?
Always use the FQDN (Fully Qualified Domain Name) such as esxi01.domain.com rather than just esxi01. This ensures correct DNS resolution, certificate validation and vCenter connectivity across your environment.
Do I need to reboot the ESXi host after changing the hostname?
A full reboot is not always required — restarting the management network interface using /sbin/restart_mgmt_interface.sh is usually sufficient. A reboot is recommended if the host is already in maintenance mode to ensure all services pick up the new hostname cleanly.
How do I change the hostname on multiple ESXi hosts at once?
Use PowerCLI to automate hostname changes across multiple hosts. Connect to vCenter with Connect-VIServer, iterate through your host list and use Set-VMHostNetwork to update the hostname and domain on each host in sequence.
About The Author
Post Views: 1
Related
Discover more from TechyGeeksHome
Subscribe to get the latest posts sent to your email.

