The unique name by which any device attached to a network is known by.
Questions tagged [hostname]
293 questions
562
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
- 7,057
395
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
- 8,050
70
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,182
45
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,185
38
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
- 535
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
29
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
- 391
- 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
23
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…
anon
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,832
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
- 73,717
19
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
- 367
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
18
votes
6 answers
Can i configure ubuntu to append a domain to the end of an ssh hostname request?
I have many servers and they all end with the same servers.company.net, so for example vded-xx-001.servers.company.net, and was wondering if it is possible to make it so i can just type the vded-xx-001 and have it append the servers.company.net…
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