The unique name by which any device attached to a network is known by.
Questions tagged [hostname]
285 questions
546
votes
14 answers
How do I change the hostname without a restart?
I want to change the OS hostname but I do not want to restart.
I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?
Deepak Rajput
- 6,887
- 9
- 29
- 37
377
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,790
- 12
- 35
- 43
63
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,102
- 2
- 10
- 18
44
votes
2 answers
How to use host names rather than ip addresses on home network?
I've a small home network up and running and managed to set up ssh. Can anyone tell me what I need to do to refer to one computer on the network from another by host name rather than IP address (which is what I'm doing now)?
naftalimich
- 1,095
- 4
- 15
- 21
35
votes
1 answer
Why I got 'unable to resolve host' when I do 'sudo'?
Whenever I do 'sudo' I get an error saying 'sudo: unable to resolve host HP-Pavilion'. I recently change my hostname to "HP-Pavilion". I wonder if I screw up something.
$ sudo mkdir SourceCodePro
sudo: unable to resolve host HP-Pavilion
[sudo]…
n179911
- 641
- 2
- 8
- 14
34
votes
2 answers
What does ".local" do?
I've got several Ubuntu machines on my network at home, but the DNS is provided by a windows server (2K). When I ssh to them from another , if I ssh to them as "machine" I can't connect, but if I connect as "machine.local" I can connect.
I think…
Marc
- 495
- 1
- 4
- 7
27
votes
2 answers
How to get the hostname from /etc/hostname & DNS domain name?
How do I get the host name from /etc/hosts? by writing hostname?
And what about the dns domain name, how do I get that?
How do I get these names through the commandline?
dada dudu
- 371
- 1
- 3
- 3
26
votes
3 answers
Changing System name
I am given an old Ubuntu working system and the previous user had everything on his name so started turning it to my name as typing his name everywhere was bugging me. I tried:
$ usermod -l hussain darhamid
This turned the darhamid@darhamid:$ into…
Hussain Nagri
- 422
- 1
- 5
- 15
23
votes
5 answers
Modifying /etc/hosts does not have an effect
I'm attempting to block myself from time-wasting websites but changes I make to /etc/hosts. For example:
127.0.0.1 localhost
127.0.1.1 ross-laptop
127.0.0.1 bing.com
# The following lines are desirable for IPv6 capable hosts
::1 …
Ross
- 1,802
- 3
- 16
- 22
22
votes
1 answer
How do I change the hostname on an Ubuntu Core system?
I just installed Ubuntu Core on my Raspberry Pi 3 and I would like to use a name other than localhost.localdomain.
How would I do this? Are there special considerations to take into account?
Jorge Castro
- 70,934
- 124
- 466
- 653
20
votes
3 answers
Should one use FQDN in /etc/hostname instead of hostname?
As I read in man page, it is recommended to put hostname(without domain name) to /etc/hostname.
For example, host instead of host.domainsub.domaintld.
But, as I know, some software relies on having FQDN in /etc/hostname.
What should one specify in…
Bulat M.
- 841
- 4
- 14
- 32
19
votes
10 answers
How to get the hostname from a DHCP server
I want Ubuntu to get the hostname and DNS name from a DHCP client. The default installation of Ubuntu 11.10 (Oneiric Ocelot) does not do that.
The same question was asked and is unsolved on Ubuntu Forums.
Oguz Bilgic
- 293
- 1
- 2
- 7
18
votes
3 answers
ubuntu server not resolving LAN hostnames
Bit stuck here.
I have 2 machines that cannot resolve LAN hostsnames, unless there are specific entries in /etc/hosts
But other machines on the LAN can resolves hostnames.
My LAN:
1 x Cisco router runnning DD-WRT v24-sp2 with DNSMasq enabled.…
teracow
- 283
- 1
- 3
- 10
17
votes
4 answers
How to get the hostname using terminal command-line?
I have used arp-scan in terminal to get the ipaddress as well as mac address, is there anyway i can get to know the hostname of the ipaddress that are there in the terminal?
for example there are A-pc and B-pc and C-pc connected to the same router.…
thanmai
- 347
- 1
- 3
- 12
17
votes
0 answers
Safe way to rename my computer/hostname?
Possible Duplicate:
How do I change the computer name?
I'd like to rename my computer. What's the recommended way to do this? Is there anything likely to break after I rename it?
Olivier Lalonde
- 57,431
- 62
- 125
- 146