How to update the hostname on a Debian system

Numerous configurations require the exact hostname on a Debian system. If your hostname is something that you need to change, follow this article:

There are two places that you have to visit to change the hostname on a Debian system:

  1. /etc/hosts
  2. /etc/hostname

After you’ve made the changes, use the ‘hostname’ command to check if it worked.

Reference:

https://www.vultr.com/docs/how-to-change-your-hostname-on-debian

Share this article

Leave a Reply

Your email address will not be published.

Scroll to Top