Sai Karthik
Balancing the braces ...Fixing the hostname resolving error while using sudo
When we change the linux system’s hostname via hostnamectl hostname
command, It’s not reflected in the /etc/hosts
file which causes sudo
to show a warning as shown below.
|
|
Here’s how to properly set a hostname.
|
|
That’s it!