Saturday, December 22, 2012

Hostname

Problem: sudo unable to resolve host ... errors

When changing the name of the host by editing /etc/hostname remember to also change the localhost entry in /etc/hosts.

For example, if the new host name is "this-box" then /etc/hosts should include these lines:
127.0.0.1 localhost
127.0.1.1 this-box

No comments:

Post a Comment