Home > English, Techie > Howto redefine the hostname on Debian/Ubuntu

Howto redefine the hostname on Debian/Ubuntu

Just a small procedure as a self-reminder (I seem to have to use it just seldom enough to forget it each time – thanks Marvil):

  • define the new hostname on the 127.0.0.1 localhost line (after localhost) in /etc/hosts
  • set the new name in /etc/hostname
  • issue a “hostname -F /etc/hostname
  • done
Categories: English, Techie Tags:
  1. March 2, 2012 at 7:48 pm

    buen dato ;)

  2. June 25, 2012 at 9:45 am

    Heu, tu devrais aussi faire gaffe à /etc/mailname, et franchement, le nom local ne devrait presque jamais se trouver sur la ligne 127.0.0.1, à part pour les machines avec une adresse publique qui change souvent.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: