•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  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
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • 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: 0Posted 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
  • BBR : A new way to increase Internet speed
  • sBlock - Backup on RHEL, CentOS, AlmaLinux & Rocky Linux
  • How to setup a dedicated server for Conan Exiles
  • sBlock - Backup on Debian, Ubuntu and Related OS
  • Installation of Lamp Stack on CentOS 7
  • 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
  • High-Bandwidth Streaming & Gaming: Why Our Chicago Dedicated Servers Are Built for Performance
  • How To Be A Successful Hosting Reseller
  • Tools That Make Kubernetes Easier
  • Efforts To Promote Global Broadband Access Not Making Much Headway
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801