fokiskin.blogg.se

Windows 10 sudo unable to resolve host
Windows 10 sudo unable to resolve host





windows 10 sudo unable to resolve host

Since the hostname is missing and your system is not able to figure out the hostname and thus it throws the error ‘sudo: unable to resolve host’. Next, see the content of the /etc/hosts file using the following command:Īs you can see, there is no such record of your hostname (newpc). The local DNS record is stored in the /etc/hosts file.įirst, login to root user with the following command: In order to fix the error, we will need to add the DNS record locally in your system. Since this a local computer and there is no such record in the DNS. In simple terms, the hostname command cannot resolve the hostname of your system. Next, run the following command to reproduce the error:Īs you can see, the message “sudo: unable to resolve host newpc” indicates that the hostname command cannot determine the IP address of host “newpc” The above output indicates that the hostname is already setup with your system. Identify the Errorīefore starting, we need to identify the actual error with a hostname.įirst, check the hostname of your system by running the following command:

WINDOWS 10 SUDO UNABLE TO RESOLVE HOST HOW TO

In this tutorial, we will show you how to resolve “sudo unable to resolve host” error. This is not a big problem and can be solve it easily. It is mapped to the network for communication. The hostname is stored locally in the file “/etc/hostname”.

windows 10 sudo unable to resolve host

The hostname is the name of your device that the network identifies with. Usually, this error occurs after changing the hostname of your system. Sometimes you encounter an error “sudo unable to resolve host”.







Windows 10 sudo unable to resolve host