The unique name by which any device attached to a network is known by.
Questions tagged [hostname]
287 questions
386
votes
14 answers
How do I change the computer name?
When I connect to my server (ubuntu server 10.10), I get this:
name@server-name.belkin ~>
How can I remove ".belkin"?

Wolfy
- 7,920
64
votes
7 answers
How to find a computer name in a LAN from the IP address?
My network includes machines running Linux and others running Windows. And my machine is running Linux.

Islam Hassan
- 1,112
- 2
- 10
- 18
8
votes
1 answer
Why does my hostname contain odd characters?
I installed Ubuntu, went straight to the Terminal and noticed there is some odd characters in my name. Here's what it is:
imageek@imageek-DP700A3D-DM700A3D-DB701A3D-DP700A7D:
How do I change this?

Im A Geek
- 183
- 4
8
votes
1 answer
What's the difference between `hostname` and `uname -n`
On my server, these both return the host name:
$ ubuntu@mt-solo:~$ uname -n
myserver
$ ubuntu@mt-solo:~$ hostname
myserver
Is this always the case?

Steve Bennett
- 6,967
7
votes
2 answers
How to change my device name?
I want to change my device name but I have not found any option in the settings to do it. I am using Ubuntu for first time. Is there any way to change the device name that appears when I lock the desktop?
5
votes
1 answer
Changed hostname, closed before changing hosts, now sudo is broken, catch-22!
I'm using Lubuntu 12.04.
I was trying to change my computer name to "main" and I messed up, I'm not sure what to do now.
I was following the directions on this page.
Here's what I did:
sudo leafpad /etc/hostname
I changed the name, then stupidly…

begtognen
- 1,670
5
votes
2 answers
how to change my hostname?
My hostname is localhost, reported by hostname command, and terminal prompt root@localhost:~#.
How can i change it to mismis.com with mismis alias? and what is the proper configuration.
I confused after reading some articles on web.
My…

pylover
- 2,325
4
votes
1 answer
Changing hostnames in bulk
I just need to rename the hostnames of all the Desktops based on their IP Addresses. For example if the IP address is 172.29.72.25 hostname should be assigned as node25, if the IP address is 172.29.72.26 hostname should be node26 etc etc. I have…

karthick87
- 81,947
4
votes
3 answers
Change Machine Name
How to change machine name in Ubuntu; as in my case it is written as Lenov@G500, and I want to change both names i. Lenovo and G500.
how it can be done through Terminal.

Aevi
- 105
1
vote
3 answers
sudo: unable to resolve host
This makes it appear that my hostname if correct:
ubuntu@webserver:~$ hostname
webserver
Below is the command I'm running and the output:
ubuntu@webserver:~$ sudo hostname webserver
sudo: unable to resolve host webserver
Here is what is in my…

Joe
- 51
- 3
- 4
1
vote
1 answer
Got 2 Ethernets one on WAN the other LAN. but LAN Could not resolve hostname
I keep getting Could not resolve hostname but I can put in the IP and it works.
I could not open the port to WWW on my LAN so just using a router and it gets on like that. Then another router for my lAN with the other Ethernet.
How can I fix this so…

Raymond Day
- 37
1
vote
1 answer
Ubuntu 18.10 and 19.04 - Hyphen in Hostname?
I have tried setting my hostname to d-myserver1 via editing the /etc/hostname file and via 'sudo hostnamectl set-hostname d-myserver1'. If I run hostnamectl, the hostname is reflected properly. If I release and renew the IP, the correct hostname is…

Matt
- 21
1
vote
1 answer
Can I make .local implicit
On my LAN I have a host named pleurotus. I can ping pleurotus.local but not pleurotus-- the host isn't found. Is there a way to make .local implicit, perhaps by putting some magical entry in the hosts file?

Paul A.
- 2,141
0
votes
1 answer
Showing different hostname on network
My hostname was smit-Aspire-5742 but now whenever I type sudo fing
it gives the following output
smit@smit-Aspire-5742:~$ sudo fing
[sudo] password for smit:
16:00:07 > Discovery profile: Default discovery profile
16:00:07 > Discovery class: …
user690429
0
votes
1 answer
How can I change computer name?
currently I have " carlos@hoffman-c:~$ "
I need to change the above to read " hamburg@hoffman-c:~$ "
I need to preserve all my settings data etc.
Thank you in advance.