Ubuntu 18.04 - Hostname is stuck at "ubuntu"

Ubuntu 18.04 installs by default will not preserve the hostname unless specifically set in /etc/cloud/cloud.cfg to preserve hostname.

To fix this, modify the /etc/cloud/cloud.cfg file and change the "preserve_hostname" parameter from "false" to "true" - then edit the /etc/hostname file to your desired hostname and reboot your server.

After rebooting, you will notice that your new hostname is preserved and not set to "ubuntu"

Looking for a KVM VPS? Contact [email protected] - we have the performance you want, the support you've dreamed of and the price you can't say no to!

  • 1 Users Found This Useful
這篇文章有幫助嗎?

相關文章

我可以申请安装Windows系统吗?

很抱歉,目前我们的VPS暂时不支持Windows系统的安装,但是有可能不久的将来我们会支持Windows。

Difference between Mb/s and MB/s

In this video, we go over the differences between Megabits per second (Mb/s) and Megabytes per...

Does RackNerd VPS support Custom ISO?

Yes, we can mount a custom Linux ISO of your choice to your KVM VPS service with us. There is no...

How do I use my new VPS?

So you just ordered a new VPS and want to know how to get started with using it? In this video...

How to Boot Your VPS to Rescue Mode

What is rescue mode used for? Rescue mode is useful if for example you may have a corrupt kernel,...