From c2f2f75d950618fa6276b44a2cc4be68fcb295f3 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 30 Apr 2017 11:46:53 -0400 Subject: [PATCH] unable to resolve host --- gotchas.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gotchas.rst b/gotchas.rst index 4b131ae..8537123 100644 --- a/gotchas.rst +++ b/gotchas.rst @@ -8,4 +8,16 @@ VIM Arrow Keys Don't Work You may notice that by default, VIM's arrow keys don't work on your computer. To fix this, add the following to your ``~/.vimrc``:: $ cat ~/.vimrc - set term=builtin_ansi \ No newline at end of file + set term=builtin_ansi + +Sudo 'Unable to Resolve Host' Warning +===================================== + +You may notice that every time you run ``sudo something``, your system complains that it cannot resolve it's own hostname, but then continues on anyway. To fix this annoyance, you need to add your system's hostname to ``/etc/hosts``:: + + $ cat /etc/hosts + 127.0.0.1 localhost + 127.0.0.1 nova + ... + +Here, my machine is called 'nova'. \ No newline at end of file