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!

  • 79 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Can I request to install Windows Operating System?

Windows is only able to run on our Windows VPS plans, which you can view here:...

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,...