JetStream Software Portal

Change DNS Name of a Linux Virtual Machine

It may be necessary to edit the DNS name of a Linux virtual machine. This can be accomplished following these steps:

  1. View the current hostname of the virtual machine: SSH into the machine and execute the command hostnamectl status.
  1. Execute the command hostnamectl set-hostname <NAME> to set the system hostname.
  1. Restart the VM to allow the modifications to take effect.

If any issues are encounted using the above commands, an alternative technique is to manually edit the file /etc/hostname to update the hostname.

Was this article helpful?

Related Articles

Can We Help You?

Can't find what you're looking for?
Contact JetStream