Ubuntu:Resolve Sudo Name Resolution

Revision as of 21:44, 5 November 2021 by Kangtain (talk | contribs)
  • Periksa nama host Anda dengan menjalankan perintah hostname di terminal Anda. Hasilnya akan kosong karena tidak ada nama host yang ditetapkan.
  • Edit /etc/hostname file hostname pada system. Berikan nama host pilihan Anda. Sebagai contoh, saya telah menetapkan nama host misal inspiron-3558.
nano /etc/hostname

Note: You will need root permission to edit the file

  • Setelah itu simpan file dengan kombinasu Ctrl + OEnterCtrl + X
  • Check the /etc/hosts file and edit the hostname same as in /etc/hostname. The hosts file maps the hostname to IP addresses. Hence, it is very important that you edit the hostname in the file. Please edit the hostname mapped with the IP address
127.0.1.1 
  • Any changes made in the files do not take effect until the system is rebooted. So, please reboot the system for the changes to take effect.
  • After rebooting check the sudo command to ensure it is working properly.

Source