From c1998e662c742b1b77b7387710b4767a5490ccd8 Mon Sep 17 00:00:00 2001 From: zleyyij Date: Wed, 20 Sep 2023 17:57:33 -0600 Subject: [PATCH] vault backup: 2023-09-20 17:57:33 --- IT/sudo unable to resolve host after hostname change.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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