•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Sudo Unable To Resolve Host

  • Home
  • Client
  • Qa Forum
  • Sudo Unable To Resolve Host

Posted By: michael | 1 Replies | Last Reply On: May 31, 2017 01:01:34

Terminal is stuck on -

sudo: unable to resolve host (none)

 

Psychz - Nikhil

Votes: 63Posted On: May 31, 2017 01:01:34
 

When the terminal is stuck on "sudo: unable to resolve host(none)", it means that you have not provided a hostname to your system. Hostname is the name of your device that the network identifies with. The hostname is stored locally in the file "/etc/hostname". It is mapped to the network for communication.


Troubleshooting "sudo: unable to resolve host(none)"

 

 

1. Check in your hostname by running the command "hostname" on your terminal. The result will be blank as there is no hostname assigned.

2. Edit the "/etc/hostname" file in which the hostname is stored in your system. Provide any hostname of your choice. As an example, I have assigned the hostname as "inspiron-3558". You can use the following command to edit the file.
(Note: You will need root permission to edit the file)

vi /etc/hostname

(Note: In this case we are using the "vi" editor to edit the file. However, you can choose any text editor of your liking.)

3. Once you have saved the file with your new hostname, run the command "hostname" to confirm. The new hostname should be displayed on the screen.

4. 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". 

5. 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.

6. After rebooting check the "sudo" command to ensure it is working properly.

 

 

Was this reply helpful?

Related topics

  • How To Run Kubernetes on Psychz Networks Bare Metal Servers
  • How to setup a dedicated server for Conan Exiles
  • Installation of Lamp Stack on CentOS 7
  • BBR : A new way to increase Internet speed
  • Setup VPN on CentOS 8
  • Unable to Access The Server Via SSH
  • ssh_exchange_identification connection closed by remote host
  • SSH Connection refused
  • How to host a dedicated Minecraft server?
  • How To Host A Website On A Dedicated Server?
  • Game Server Hardware Recommendation
  • How To Be A Successful Hosting Reseller
  • Tools That Make Kubernetes Easier
  • Tutanota "blocking" on Comcast Network sparks the debate of net neutrality again
  • Efforts To Promote Global Broadband Access Not Making Much Headway
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company