DEV Community

Cover image for Rename Ubuntu droplet
Adam K Dean
Adam K Dean

Posted on

Rename Ubuntu droplet

To rename a Digital Ocean Ubuntu droplet, update /etc/hostname and /etc/hosts, then run:

service restart hostname
Enter fullscreen mode Exit fullscreen mode

You'll need either root access or sudo for this.

Discussion (0)