Questions tagged [hostname]

Hostname is a label assigned to a device connected to a computer network used to identify the device.

A hostname is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication such as the World Wide Web, e-mail or Usenet. Hostnames may be simple names consisting of a single word or phrase, or they may have appended the name of a DNS domain, separated from the host specific label by a period (dot). In the latter form, a hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, the hostname is said to be a fully qualified domain name (FQDN).

Hostnames that include DNS domains are often stored in the Domain Name System together with IP addresses of the host they represent for the purpose of mapping the hostname to an address, or the reverse process.

Source: Wikipedia.

624 questions
2
votes
3 answers

SVN : how to change hostname?

I'd like to sep up SVN repo on local machine. But we already have apache running under localhost. When I use instalator form subversion site with apache option it installs another apache and when I type "localhost" in browser I see this new apache…
elon
  • 123
  • 2
  • 10
2
votes
3 answers

Can a CNAME be a hostname

This is bit of a theological question, but nonetheless... So, a server has a hostname, let's say the fqdn is hostname.example.com (to be really precise about what I mean, this is the name that is set in /etc/sysconfig/network). The very same server…
rytis
  • 2,382
  • 1
  • 18
  • 13
2
votes
1 answer

Linux: shortname stuck as "localhost" even though full hostname is correct

I have a linux (CentOS 5.2) server with the name myserver.mycompnay.com, which is correctly returned when I run 'hostname'. When I run 'hostname -s' however it returns "localhost" which is causing some backup scripts to put stuff in a "localhost"…
DrStalker
  • 6,946
  • 24
  • 79
  • 107
2
votes
4 answers

Where is the hostname in /etc/hostname on a debian server used?

I have a webserver running a number of websites. When I ssh in, it gives me a tab name of username@localhost.localdomain, which is counterintuitive, making it seem like those tabs are on my localhost. I would like to change the hostname, but I want…
Kzqai
  • 1,278
  • 4
  • 18
  • 32
2
votes
1 answer

Nmap unable to resolve hostnames

I have tried running several nmap commands and I can't get the results to return host names. My results look like this: Nmap scan report for 10.2.16.253 Host is up (0.0025s latency). All 1000 scanned ports on 10.2.16.253 are in ignored states. Not…
UbuntuNoob
  • 23
  • 1
  • 3
2
votes
2 answers

Change name of linux server on network

I'm using CentOS 5. How do I change the hostname of the machine so I can ssh to it from other boxes by a short hostname? I've tried "hostname puppet", changing "/etc/sysconfig/network" and "sysctl kernel.hostname=puppet". I'd like to be able to…
Jon Haddad
  • 1,372
  • 3
  • 13
  • 20
2
votes
1 answer

Hostname error on my Slicehost Ubuntu server

Like many folks who upgraded to Rails 2.2, I got an exception raised when sending an email. This version of Rails or later does require using tls for sending emails. The message in the production log file says: hostname was not match with the server…
allesklar
  • 140
  • 9
2
votes
1 answer

How to block Hostname in htaccess?

I get thousands of server requests from "clients.your-server.de" i use these code in htaccess to block bots and spiders, but i did not know if the two first lines of code will work ... Is it even possible to block a server request using the…
soo29
  • 23
  • 3
2
votes
1 answer

What does "localhost name resolution is handled within DNS itself" mean?

I know that the Windows hosts file maps host names to IP addresses. But there is no mapping for localhost. Instead it has a comment that says this: # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost I don't…
Liga
  • 135
  • 2
  • 12
1
vote
1 answer

Changing from Localhost to Computer Name Throws 403 Error (Tomcat 9)

I am trying to run Tomcat 9. I have configured it to run with SSL. So when I am accessing the tomcat URL with: https://localhost:8443/manager/html It works fine. But when I try to run it with my computer name I get the 403 error saying I should…
hell_storm2004
  • 157
  • 1
  • 3
  • 11
1
vote
1 answer

Append domain to container hostnames in a Kubernetes StatefulSet

I have created a Kubernetes StatefulSet. There are three pods in the StatefulSet with names mysql-0, mysql-1, and mysql-2 each with a single container. If I "log" onto the container in pod mysql-1 and type hostname I get the response mysql-1.…
user35042
  • 2,681
  • 12
  • 34
  • 60
1
vote
1 answer

/etc/HOSTNAME on SuSE: short name or FQDN?

The file /etc/HOSTNAME on SuSE-Linux contains the host name. Should this be the full qualified domain name, or the short name (without ".")? Related question: socket.getfqdn() returns no domain, but socket.gethostname() does?
guettli
  • 3,591
  • 17
  • 72
  • 123
1
vote
0 answers

Why does my AWS EC2 instance return "Unknown host" when doing a "hostname -i"?

Last week someone created an AWS EC2 instance for us using AMI type Amazon Linux 2 AMI 2.0.20190313 x86_64 HVM gp2. Let's call that Instance1. Yesterday we found a problem with our software that may have been caused by that version of Linux, so we…
pacoverflow
  • 261
  • 2
  • 3
  • 17
1
vote
2 answers

What to use for a hostname on a dedicated Linux server?

I've recently run into Debian wiki not recommending to set exim's primary_hostname explicitly. From what I can gather, here's the code that chooses primary_hostname. Basically, either I have FQDN in /etc/hostname (myhostname.example.com), or just…
x-yuri
  • 2,141
  • 2
  • 24
  • 29
1
vote
2 answers

(hostname -i) command gives 2 different IP addresses

hostname -i command on a Debian 9 box gives 2 different IPs. hostname -I command gives the correct IP. As per the manual page, -i parameter shouldn't be used. It works only if the hostname can be resolved, does that mean the issue is with the DNS…
foobar666
  • 11
  • 1
  • 3