Sudo command not working

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
alphaQ101
New to forums
New to forums
Posts: 5
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Sep 20, 2012 9:09 pm

Sudo command not working

Post by alphaQ101 »

Every time I try to do a sudo command on an Ubuntu server I get this error:

sudo: unable to resolve host shadowlandsmc

This includes logged onto root. Please help because it's posing a huge problem
User avatar
Edge100x
Founder
Founder
Posts: 13130
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Sudo command not working

Post by Edge100x »

I haven't seen this happen before with sudo. But, you should be able to make your hostname resolve by editing /etc/hosts and adding an entry like this:

127.0.0.1 shadowlandsmc
alphaQ101
New to forums
New to forums
Posts: 5
Joined: Thu Sep 20, 2012 9:09 pm

Re: Sudo command not working

Post by alphaQ101 »

Thanks edge, that seemed to fix it
Post Reply