Ubuntu:Resolve Sudo Name Resolution: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
<blockquote>'''Note:''' You will need root permission to edit the file</blockquote> | <blockquote>'''Note:''' You will need root permission to edit the file</blockquote> | ||
*Setelah itu simpan file dengan | *Setelah itu simpan file dengan kombinasi <code>Ctrl + O</code> → <code>Enter</code> → <code>Ctrl + X</code> | ||
* | *Cek file <code>/etc/hosts</code> dan edit hostname pada directory <code>/etc/hostname</code>. memetakan nama host ke alamat IP. Oleh karena itu, sangat penting bagi Anda untuk mengedit nama host dalam file. Harap edit nama host yang dipetakan dengan alamat IP | ||
127.0.1.1 | 127.0.1.1 | ||
Revision as of 21:47, 5 November 2021
- Periksa nama host Anda dengan menjalankan perintah
hostnamedi terminal Anda. Hasilnya akan kosong karena tidak ada nama host yang ditetapkan. - Edit
/etc/hostnamefilehostnamepada system. Berikan nama host pilihan Anda. Sebagai contoh, saya telah menetapkan nama host misalinspiron-3558.
nano /etc/hostname
Note: You will need root permission to edit the file
- Setelah itu simpan file dengan kombinasi
Ctrl + O→Enter→Ctrl + X - Cek file
/etc/hostsdan edit hostname pada directory/etc/hostname. memetakan nama host ke alamat IP. Oleh karena itu, sangat penting bagi Anda untuk mengedit nama host dalam file. Harap edit nama host yang dipetakan dengan alamat IP
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
sudocommand to ensure it is working properly.