The unique name by which any device attached to a network is known by.

learn more… | top users | synonyms

1
vote
3answers
4k views

Cannot access Samba share from windows 7 using hostname

I've been trying for days to get this working, and everywhere I look online it seems no one has a definitive answer, so here is the run down: I have an external drive attached to my ubuntu 12.04 ...
1
vote
1answer
600 views

Can /etc/hosts be set up automatically?

I need to automatically add mac-addresses to some file and manually add the hostnames assigned to them. A script will then scan my home LAN for those mac-addresses and populate the /etc/hosts file, ...
1
vote
1answer
56 views

Slow hostname lookup: curl slow, sudo slow, browser slow

my problem is similar to other slow host name lookup issues, but I failed to find a working solution. The main effects are a slow sudo command a very slow DNS resolution in all browsers. I guess that ...
0
votes
0answers
24 views

I want to edit gcc compiler code to print hostname with a message at compile time. how can I do that?

I've downloaded the gcc source code, I don't know what all files to edit in order to print the hostname along with a message at the compile time.
2
votes
2answers
106 views

How to send the DHCP server a different hostname?(connecting to wifi with a fake computer name)

I want to connect to a WiFi network without disclosing my original Hostname(Computer Name) to the network. i.e, I want to connect to WiFi networks with a different (fake) Hostname of my choice ...
-1
votes
1answer
47 views

Setting the name of a machine

I've built a machine with spare parts with the intention of using it like a home server, but it does something I didn't expect, it adds ".local" to the hostname, so I can't access to it with the name ...
1
vote
0answers
28 views

What should be /etc/hosts entry so that it works fine for both localhost & IP address?

Sample etc/hosts: 127.0.0.1 localhost 127.0.0.1 DEVubuntu 192.xxx.xxx.xxx DEVubuntu This is not working for me. I am not able to run Zookeeper and I am sure it's related to the ...
1
vote
0answers
19 views

Ubuntu 14.04 sudo: unable to resolve host Cricketpunk [duplicate]

i am new to ubuntu and recently tried changing my hostname and have probably messed up something,and have trouble fixing it. Whenever i give command like get sdu sudo apt-get install g++ ...
236
votes
7answers
399k views

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?
0
votes
1answer
573 views

PXE based installation always sets hostname as 'kickseed'

I am using PXE based provisioning of Ubuntu 12.04.5. I have PXE, TFTP, DHCP server in place. All my configurations specified in kickstart file are set correctly except the hostname. The machine always ...
0
votes
0answers
24 views

How can I access Ubuntu-hosted website on Windows intranet by hostname over HTTPS?

I have made an Ubuntu server accessible on a Windows network. I can access the server via a browser at http://192.168.X.X and I can access a shared folder via Windows Explorer at ...
0
votes
0answers
25 views

MAAS images register with “ubuntu” hostname in the DNS

I have set up a MAAS server (last stable 1.8.3) with an external DNS and DHCP and everything seems to work fine except for a minor issue deploying the Ubuntu 14.04 LTS image. During the deployment ...
156
votes
13answers
308k views

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"?
0
votes
1answer
342 views

Correct MX record, subdomain and Dynamic DNS settings for Namecheap Self hosted email @domain.com email & correct Hosts and Hostname for server

I want to correctly Set up my own email server at home for my domain.com. It is hosted by namecheap. I need to set up the following On Namecheap (Domain provider): MX Record Subdomain On Server: ...
1
vote
1answer
27 views

do a reverse name lookup to compare the IP to localhost

i want make server ip mapping to localhost? should i vim /etc/hosts 127.0.0.1 localhost ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 10.51.101.35 iZ25kpavw8zZ ...
0
votes
0answers
26 views

How could I change the remote desktop display name?

I have set the Ubuntu desktop sharing system and works fine, but I'm unable to change the name of the remote desktop. By default, it's "cialu's remote desktop on host-name" and it's too long for me. ...
0
votes
2answers
54 views

Changing hostname without restart via cloud-init isn't working correctly

I followed this thread while writing my cloud-init script. I've tested and I have this in one part of my boothook script: echo "HOSTNAME=$HOSTNAME" >> /etc/environment echo "127.0.1.1 ...
0
votes
1answer
44 views

DNS goes missing with Static IP via NetworkManager

I know there's plenty of posts/threads/questions/tutorials regarding ubuntu's DNS, network manager innards, and changes in the like between versions ~12 to 14-15+. I'm on ubuntu 12.04, and looking to ...
2
votes
0answers
35 views

how to get back my previous hostname?

i wanted to change the name of my pc so i executed the command sudo nano /etc/hostname and sudo nano /etc/hosts to change the content of both of the files, but after rebooting, the pc displays ...
0
votes
3answers
2k views

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 ...
0
votes
1answer
75 views

14.04 Desktop - how to assign domain to hostname?

Situation : we were - and still are partially - on a domain name (dark.void) we wish to get rid of! Here is the current content of the different networking configuration files in an attempt to switch ...
0
votes
1answer
94 views

How to change Ubuntu server domain name?

I'm using Ubuntu server in my local network. I access the hosted sites on it from other computers using the local ip address. for example: 192.168.100.2/info.php/. I want to set a domain name to use ...
0
votes
1answer
197 views

sudo unable to resolve host error message [duplicate]

I changed my hostname in: /etc/hostname And then also changed it with: sudo hostname MATRIX But I experienced a problem because (and I don't know if this is related or not) none of my ...
1
vote
1answer
32 views

Giving Ubuntu Desktop a domain name to ssh into [duplicate]

I know absolutely nothing about remote access to a desktop. I've just set up a machine with Ubuntu installed which I wish to run calculations on remotely. I've installed openssh-server and opened ...
4
votes
1answer
394 views

How to safely change username and hostname?

I installed a fresh Ubuntu Gnome 14.04.3 today, but I just notice that I reversed the username and hostname during installation. To illustrate this, when I open a terminal, the prompt looks like : ...
0
votes
2answers
2k views

Having 2 websites under same IP apache2 configuration?

I know there is plenty of documentation about this, but my problem is different. I have 2 websites (subdomains) running on one apache2 server. Site 1 is working fine, site 2 is somehow linked to the ...
0
votes
0answers
107 views

Should Mailserver /etc/Hosts be static ip or loopback?

Im trying to set up a mail server, and currently I am having issues with hostname and hosts files. I want to get this correct before installing postfix and trouble-shooting issues that may be ...
8
votes
4answers
42k views

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 ...
4
votes
3answers
173 views

Change Machine Name [duplicate]

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.
0
votes
1answer
58 views

Hostname of machine changed unexpectedly to mongodb after reboot

I have mongodb 3.0.4 installed on my Ubuntu 14.04 machine, and after I did a reboot I noticed that the hostname changed to mongodb. Indeed I see myuser@mongodb instead of myuser@myhostname as it was ...
1
vote
1answer
60 views

SSH connects with old hostname

I changed my hostname on my Ubuntu (12.04) computer but my CentOS computer still connects to it using the old hostname. How can I make it so that I can type: ssh new_hostname instead of : ssh ...
1
vote
1answer
104 views

Unable to launch anything after changing hostname

Since I upgraded to Ubuntu 15.04, I have noticed that whenever I change my hostname by changing it in and with: /etc/hostname /etc/hosts sudo hostname <new-hostname> Immediately after this, ...
4
votes
2answers
18k views

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 ...
0
votes
2answers
2k views

How to change my device name? [duplicate]

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 ...
1
vote
0answers
517 views

change host name initramfs ALERT! /dev/mapper/guacamole--vg-root does not exist

I have two servers - guacamole and chorizo to be set up with Openstack cloud. I installed ubuntu server on one, then used the linux "dd" to image the disk to build the other, and renamed the server ...
27
votes
6answers
136k views

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.
9
votes
7answers
42k views

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 ...
3
votes
1answer
3k views

unable to edit /etc/hosts file in ubuntu 14.10

I changed the hostname from default name, set during installation to something short and nice, but didn't change it in /etc/hosts file. /etc/hostname is changed after restart but sudo is not working. ...
2
votes
1answer
125 views

Problem with same hostname and domain

I have a bit of problem, when I was setting up production server hostname was same as name of one domain that wasn't planed to be used, now i have to use this domain name and files are stored in ...
0
votes
0answers
488 views

Blocking Specific User to specific website using Squid Web Proxy Webmin

I'm using Squid Web Proxy via Webmin and currently it works. I have set the proxy authentication too. source : ...
0
votes
0answers
63 views

hostname and hostname -f returned different value

My ubuntu hostname command returned correct server name but the hostname -f returned localhost. How do I make hostname -f return the correct server name?
0
votes
3answers
1k views

sudo: unable to resolve host [duplicate]

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 ...
1
vote
0answers
23 views

Ubuntu PXE installation is not asking for the hostname or domain [duplicate]

I'm using a PXE server for installing systems in my network. I want it to ask for the hostname and domain on every install instead of asigning 'kickseed' everytime. I cannot figure out what is causing ...
25
votes
3answers
62k views

Changing System name [duplicate]

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 ...
0
votes
0answers
112 views

Accessing my Server over the Public Internet

I have installed apache couchDB on my server and ran the following command : HOST="http://commcarehq:commcarehq@127.0.0.1:5984" curl -X PUT $HOST/commcarehq which was succesfull but when I run ...
0
votes
0answers
24 views

Is there any way to change `fqdn` permanently without rebooting? [duplicate]

At present I got the following configuration $cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 ubuntu.domain.lcl ubuntu $cat /etc/hostname ubuntu $hostname -f ubuntu.domain.lcl Now in order to ...
0
votes
1answer
92 views

How do I change host name [duplicate]

Getting 'unable to resolve host' error and need to change name. How do I do this? Hostname is brian-HP-G60-Notebook-PC $ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 linux # The following lines ...
1
vote
1answer
3k views

Got SERVFAIL reply from 8.8.8.8, trying next server [ubuntu 14.04 digitalocean ispconfig]

All started with a vps from digitalocean and the following documentation from ispconfig https://www.howtoforge.com/perfect-server-ubuntu-14.04-apache2-php-mysql-pureftpd-bind-dovecot-ispconfig-3 after ...
3
votes
2answers
2k views

can the hostname changed via DHCP?

According to several comments in the web most DHCP clients simply ignore the hostname provided by the DHCP server. Does Ubuntu use the provided hostname? If not, how can Ubuntu be persuaded to use the ...
0
votes
2answers
331 views

After change of host and hostname, terminal won't show it

I have changed my host and hostname by editing the files /etc/hosts and /etc/hostname. But this won't affect what appears as my terminal prompt. It still shows my old_host@new_hostname. How to get ...