LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changed host name (https://www.linuxquestions.org/questions/linux-newbie-8/changed-host-name-4175444265/)

adampski 01-05-2013 09:42 AM

Changed host name
 
Recently I changed my host name by running the following command:

Code:

sudo gedit /etc/hostname
It succesfully changed, however now every time I attempt to use sudo (accessing root) it returns "unable to resolve host laptop" - fortunately I'm still able to use the command but it just displays this every time.

Is there anywhere else I need to edit to readjust this?

EricTRA 01-05-2013 09:45 AM

Hi,

Did you make the same change in /etc/hosts?

Kind regards,

Eric

adampski 01-05-2013 09:49 AM

Thanks for the swift reply.

Edited the hosts file, sorted :)

EricTRA 01-05-2013 09:53 AM

Hello,

Perfect! Please mark your thread as solved if you consider your problem as such.

Kind regards,

Eric


All times are GMT -5. The time now is 02:49 PM.