When you’re working with servers, you may run across cloud servers whose hostnames aren’t very descriptive. How about 30714-2-1290387 or domU-12-31-39-09-E5-E7 for a hostname of a server. Don’t they look like they could be a part number or a serial number of a server rather than its hostname?
Well, that’s exactly the kind of hostname many of the IaaS providers assign their cloud servers. And other than a few exceptions, you don’t have an option of picking a hostname while creating a cloud server.
Now imagine having to manage scores or more servers with similarly cryptic hostnames. It’s a tedious and frustrating thought, at best.
Given that, it’s a good thing that once the server has been created, it’s rather easy to go in and change it’s hostname. In this blog post, we will walk through how to do that for both Linux and Windows.