How to Change Server Name for Windows and Linux Server?

Changing the server name for both Windows and Linux servers is a straightforward process. 

Here’s a step-by-step guide for each operating system:

Change Name for Windows Server

  1. Go to to the Control Panel using the Start menu on the bottom left corner.

    Control Panel

  2. Select the System and Security option from the Control Panel.

    System and Security

  3. Click on the System option on the screen.

    System

  4. Click on the Change settings option under the Computer name, domain, and workgroup settings heading.

    Change settings

  5. Click on the Change button in order to change the server name.

    Change

  6. Click on the Change button to change the primary DNS suffix of this computer name.

    primary DNS

  7. Click on the OK button on the message prompt and restart your server.

    OK

  8. Once you restart the server, the change of name will be applied to the system

    restart the server

Change Name for Linux Server

  1. Check Current Hostname: Use the command hostname to check the current hostname of your server.
  2. Change Hostname: To change the hostname, use the command sudo hostnamectl set-hostname <new_hostname>, replacing <new_hostname> with the desired new name.
  3. Verify New Hostname: To verify the new hostname, use the command hostname again.
  4. Update Hostname Configuration (Optional): Depending on your Linux distribution, you may need to update the hostname configuration files. For example, on Ubuntu or Debian, edit the /etc/hostname file and replace the old hostname with the new one.
  5. Restart System (Optional): While not always necessary, restarting the system may ensure that all services are aware of the new hostname. Use the command sudo reboot to restart the server.

Conclusion

Changing the server name is a simple process that can be done in a few minutes. The specific steps involved will vary slightly depending on whether you are using a Windows or Linux server. Once you have changed the server name, you will need to update any DNS records that point to the old server name.

Can't find what you're looking for?

Please reach out to [email protected] and we will happily answer any question you may have.

Talk To Our Technical Expert