A hostname is the label given to a device connected to a computer network.

learn more… | top users | synonyms

0
votes
4answers
49 views

Can't ping to another linux machine by hostname

When i try to ping to another linux machine in my local network i didn't work when i insert the host-name in the ping command. sudo ping Raspberry2 It only works when i insert the IP address in the ...
0
votes
1answer
23 views

How to correctly set hostname and domain name?

I am renting a server, running Ubuntu 16.04 at a company, let's name it company.org. Currently, my server is configured like this: hostname: server737263 domain name: company.org Here's my FQDN: ...
0
votes
0answers
19 views

httpd: Could not reliably determine the server's fully qualified domain name

We have a requirement to replace the existing certificate and also install the recent patch of content server in our content server which based on linux and the database is MAXDB. However Database ...
1
vote
2answers
28 views

CentOS 7 hostname netbios/fqdn output

I have a CentOS 7 install that is giving me some weird returns when I lookup the hostname of the localmachine. I am used to working with Windows and the hosts file (/etc/hosts in CentOS) so feel like ...
0
votes
0answers
30 views

Centrino N-6205 iwn0 driver - No Link attempting to connect to wifi (OpenBSD 6.0)

After reading the iwn manpage I downloaded the latest firmware from: http://firmware.openbsd.org/firmware/6.0/ and unzipped the contents into /etc/firmware, after doing that I configured /etc/...
0
votes
0answers
13 views

Minbian install performing strangely after hostname changes?

I've re-flasahed this SD card with the latest image of Minbain 4 or 5 times tonight. Strangely it works perfectly (literally the same image) on one of my RPi3s but not on the other. When I re-flash ...
2
votes
1answer
29 views

Why do some of my logs use Localhost and others Hostname - Different Servers

I am debugging something related to LDAP loggins, Ldap SSH Login not working - Same configs worked on 20+ other servers - Ubuntu and I noticed that in some servers, the logs use localhost and in ...
-3
votes
1answer
34 views

Why does hostname -i give different results on different machines? [closed]

On machine a I run hostname -i and I get: 10.42.16.40 On machine b I run hostname -i and I get: fe80::4a0:3bff:fed8:ef09%eth0 10.42.16.32 All I want is the IP address My question is: Why does ...
0
votes
1answer
73 views

Mac OS X Terminal Equivalent for Host Name Info

In Linux, using a Bash Terminal, I can do: hostname -d to display the name of the DNS domain, and hostname -i to display the network address(es) of the hostname . How can I retrieve the same ...
1
vote
2answers
27 views

Is this my hostname and DNS domain name?

I am trying to find what my VM's hostname is. When I do cat /etc/hosts I get: 127.0.0.1 localhost Is localhost the hostname? The DNS domain name isn't written where do I find that? When I write ...
1
vote
1answer
34 views

Does your hostname save on your NIC | centos 7?

I recently installed CentOS 7 on a new hard drive with all default settings and when I enter: # hostname I get: SVP But "SVP" is neither in /etc/hostnames nor /etc/hosts configured. But I have ...
0
votes
2answers
44 views

Rename RedHat7 hostname without reboot

I am new to Linux. How do I rename the RedHat7 hostname without a reboot? I am also trying to automate this task, so please provide the commands for the shell script.
0
votes
0answers
13 views

Services not discovered in hotspot

CONTEXT I have a r-pi3 with OSMC installed. I have set it up so that it is connected to the router using ethernet and also runs a wifi hotspot(Let's name it 'osmc_wifi'). I generally connect to '...
0
votes
2answers
60 views

How to keep sshd service running all the time and set permanent FQDN hostname in CentOS7?

I have installed CentOS7 in VMWare Workstation 12 player and I'm trying to use key-based SSH authentication. I have completed the process of passwordless SSH and it works fine but I have to start the ...
0
votes
2answers
109 views

hostname -i returns strange result in linux

If I run below command, I am getting some strange IP addresses. hostname -i 198.105.244.11 198.105.254.11 My host file entry is in default configuration, below are the contents of my /etc/hosts file ...
3
votes
2answers
75 views

Simple name server alternative a la /etc/hosts [duplicate]

I use /etc/hosts to define names to local addresses in the network, so I can type ssh user@raspberry instead of ssh [email protected]. It works very well for a single machine, but now I need to ...
1
vote
3answers
57 views

Local hostname resolution with BIND and custom domain

I have recently converted one of my main Linux servers into my router as well, and made my old router simply a switch and an access point. My one issue is that I am unable to automatically determine ...
1
vote
0answers
43 views

Why is LDAP trying to connect by hostname instead of localhost?

I have set up an LDAP server on localhost and generated certificate with CN=localhost. But when I run the command ldapsearch -H ldap://localhost -D "..." -w password -ZZ -d1 I get the error ... ...
0
votes
3answers
147 views

SSH without knowing IP addresses

I'm running Arch on my daily use laptop and I have two SSH terminals open up every time I login. I SSH into another Arch laptop, which is essentially a network connected hard drive in which I backup ...
0
votes
1answer
115 views

Site cannot be reached after installing centos 7

Hello I am new to this unix background. I had set up a server on centOs 7. i had given ip as 192.0.2.123 and host name as www.example.com. now when i www.example.com hit the hostname in the browser ...
0
votes
2answers
96 views

How can I resolve an IP address to a hostname in Arch Linux? [duplicate]

What is the most concise way to resolve a hostname to a local IP address in Arch Linux?
0
votes
1answer
86 views

Assign hostname to a variable in ksh

I am trying to assign the output of hostname to a variable and use it in my script. While I was able to get the variable to another logic, when I try to print the variable it doesn't print the ...
2
votes
2answers
49 views

How to specify protocol prefix containing “:” to bash-completion function _known_hosts_real

I am attempting to use bash-completion for URLs of the form "proto://host". Without the ":", I see expected behavior, with the ":" present, the URL comes out "faulty". Bash completion has a function ...
1
vote
1answer
53 views

Turn off resolve peers in uTorrent server (utserver)

I have utserver running and WebUI is also working. I noticed the default seems to have the peer resolve the IP address to their host name. I want to turn this off. In the Windows client, you could ...
0
votes
4answers
82 views

How to add hostname as first line of a file

I have a file which has a few lines. one two three four five I need to add hostname of the server I'm working on as the first line of the file. For example if abcd555.india.com is the server, the ...
0
votes
4answers
199 views

Setting up hostnames on local network [duplicate]

So, I'm setting up an experiment network for me and the other geeks at my school to use for website testing and server practice, and I'm the sys and net admin (but really it's just for playing Quake). ...
0
votes
1answer
35 views

hostname -f .com.com

I modified my /etc/hostname file and /etc/hosts like that: hostname.com and 127.0.0.1 localhost.localdomain localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-...
0
votes
3answers
4k views

I got error “hostname: Name or service not known” when checking IP of hostname

I'm running Ubuntu 14.04 on my company's cloud service (my instance has elastic IP) I want to check out IP of my instance I'm running by command line but it didn't work. root@ubuntu14-graphite:~# ...
0
votes
1answer
407 views

DRBD - 'node1' not defined in your config (for this host) - Error when setting Primary [closed]

I am getting the following error when trying to set the Primary node for DRBD. 'node1' not defined in your config (for this host). I know this is related to DNS/Hostname/Hosts and the config ...
1
vote
1answer
41 views

how to change all the hostnames reported by hostname --all-fqdns?

Running hostname -A reports two host names: an incorrect one that doesn't even resolve to my server and a correct one. $ hostname -A notmyhostname.notmydomain.com myhostname.mydomain.com The ...
1
vote
1answer
791 views

sudo: unable to resolve host “hostname”

I'm testing a VPS provider, and recently created a virtual machine with a hostname testserver using an ubuntu template. This VPS provider reserves and bills resources by the month, so if you create a ...
0
votes
0answers
70 views

Why are the names different in “/etc/HOSTNAME” file and hostname command in SLES11SP3?

My OS is SuSE(SLES11, SP3), executing the hostname command: # hostname lxc-dl580-g8-1 But the name in /etc/HOSTNAME file is different? # cat /etc/HOSTNAME linux-2pny.site Why are the names ...
1
vote
1answer
37 views

Separate server's hostname appearing in this server's cron logs

I get entries like these in /var/log/cron, in a host named SERV2 (RHEL 6.2): Apr 21 14:50:01 SERV1 CROND[14799]: (root) CMD (/usr/lib64/sa/sa1 -S DISK 1 1) Apr 21 15:20:01 serv2 CROND[24438]: (root) ...
4
votes
0answers
132 views

Why does connecting using an ssh key fail with one host name but work with others? [closed]

Trying to use an ssh key to a server which has different host names works with some host names, but not with others? Is there some reason why ssh would work that way? E.g. say hostname1.com and ...
3
votes
1answer
125 views

Check presence of a hostname under custom port in known_hosts

I need to add a check if the hostname is already present in the known_hosts. Normally I would do something like that: ssh-keygen -H -F hostname However, that does not seem to work for me in this ...
0
votes
2answers
46 views

Hostname troubles

I am trying to change the hostname on a Linux RHEL6.5 box and have changed it in /etc/hosts and in /etc/sysconfig/network, as I have read.. The command hostname'now returns the new hostname, but ...
1
vote
0answers
50 views

Rsyslog to use hostname instead of leftmost FQDN label

I have an Ubuntu 15.10 configuration in which /etc/hostname reads projectname-environmentname and /etc/hosts reads 127.0.0.1 localhost 127.0.1.1 environmentname.projectname.tld projectname-...
2
votes
2answers
100 views

Where does FQDN come from when not set explicitly?

When there is no FQDN explicitly specified on an Ubuntu server: $ cat /etc/hostname banana $ cat /etc/hosts 127.0.0.1 localhost banana Then where does mydomain.com come from? $ hostname -A banana....
3
votes
1answer
129 views

Unable to update hostname output for Ubuntu Server (on Digital Ocean)

I recently created a droplet server at Digital Ocean named: ubuntu-2gb-nyc3-01-2016-03-13 and then did a rename on the server at the Digital Ocean control panel, to exchange.mydomain.com. ...
0
votes
0answers
51 views

Set name for NAS with samba

Hi I'm in the midst of setting up a torrent box which has ArchLinux installed. I've been following quite a few of the archlinux tutorials and I'm at the point where I have a samba server up and ...
1
vote
2answers
69 views

How to randomly pick one of multiple hostnames under one alias (~/.ssh/config)

Is it possible to make ssh pick a random ip adress (using a wildcard) to connect? We have 30 computers with IP addresses from "asd1.asd.asd.asd.com" to "asd30.asd.asd.asd.com", and i want to connect ...
1
vote
2answers
317 views

hostname: Name or service not known

I got this error during the installation of 2 packages. I tried to follow different tutorials around internet, however none of them seems working for me. Can you help me with this? root@blackbox:~# ...
3
votes
2answers
414 views

How to change the part after root@

For example. [root@ip-10-0-7-225 ~]# I edited /etc/hosts but it didn't work.
1
vote
1answer
163 views

ssh_config: Add a host section that matches IPs even when connecting via hostname

I want a host section in my ssh config that matches any local IP: Host 10.* 192.168.*.* 172.31.* 172.30.* 172.2?.* 172.1?.* setting setting ... This works as long as I connect directly to a ...
0
votes
1answer
45 views

Why doesn't 'sudo' skip hostname-checking when the command can be run on 'ALL' hosts?

The sudoers file provides a way to limit which "runas" entries apply to which hosts. When running a command with sudo, the hostname is checked against the hosts on which a "runas" entry applies. When ...
0
votes
1answer
584 views

CentOS 6.7: 'No address associated with name' as 'hostname --fqdn' output

please, before read this question, I would pray you to consider that I'm a Linux newbie and that I really need a help. I apologize in advance if the question will be trivial or stupid, I will search ...
8
votes
3answers
4k views

How to get the computer name (not its hostname)?

All the results of my searches end up having something to do with hostname or uname -n. I looked up the manual for both, looking for sneaky options, but no luck. I am trying to find an equivalent of ...
1
vote
1answer
118 views

Telnetting the local port working but trying with ip not working

My question is similar but opposite to to Telnetting the Local port not working but trying the ip working For me, telnet to the local port works but trying with IP does not work :( I am running ...
3
votes
1answer
256 views

What is the best way to keep a Linux server's hostname consistent?

We have a server with a CentOS distribution of Linux. It lost its hostname in the month somehow, since our last reboot. We ran an ETL (extract, transform, load) job last week, and part of that ...
0
votes
1answer
80 views

Browse by hostname from internet browser

I can browse my server site using ip:8080 which is inside my home network.But I am not able to browse using hostname:8080 I do not have dns server. I have edited /etc/hosts file to include ...