notes/IT/Troubleshooting/sudo unable to resolve host after hostname change.md

5 lines
163 B
Markdown
Raw Permalink Normal View History

2023-09-20 23:57:33 +00:00
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
```