diff --git a/IT/sudo unable to resolve host after hostname change.md b/IT/sudo unable to resolve host after hostname change.md index 95badfd..01baa44 100644 --- a/IT/sudo unable to resolve host after hostname change.md +++ b/IT/sudo unable to resolve host after hostname change.md @@ -1 +1,5 @@ -Edit `/etc/hosts` to include a line under the `localhost` one with \ No newline at end of file +Edit `/etc/hosts` to include a line under the `localhost` one with a loopback IP and the new hostname, eg +``` +127.0.0.1 localhost +127.0.0.1 newhostname +``` \ No newline at end of file