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

Is a matching entry in /etc/hosts required for hostname?

I was installing a Tomcat webapp that refused to work until I stumbled on someone else's issue with an unrelated product. The solution was to add the machine's name to /etc/hosts, to match the name returned by hostname. Is this required for…
0
votes
2 answers

IIS7 binding to subdomain causing authentication errors (TFS 2010)

I'm trying to bind a IIS web site (Team Foundation Services 2010) to a subdomain, which is causing authentication errors. First I'll explain what I've done to set it up. This is the fist time I do this, so please correct me if I'm wrong. The web…
0
votes
2 answers

How to configure a new subdomain for a wildcard certificate?

We have wildcard certificate installed in our production environment. One of our client wants his name to appear in the URL (e.g. companyname.example.com). How we should facilitate this? Do we need to make any entries for this in DNS? If yes can you…
Amit
0
votes
1 answer

Cannot ping ubuntu server by hostname - can only ping by IP

I have an unbuntu 9.10 server and have set the hostname to "fileserver" When I try to ping fileserver from a client machine it doesn't find it, however I can ping by the IP my router assigns it. I have tried changing the ip in /etc/hosts from…
Tone
  • 601
  • 4
  • 13
  • 29
0
votes
2 answers

What for zeroconf binds hostnames to IP addresses?

I mean, why IP addresses are not sufficient? We can identify devices by their IP addresses. Why do we want to use hostnames? To identify devices? I know that IP addresses are assigned in a random way (from a certain range). What about the host…
Roman
  • 2,569
  • 10
  • 32
  • 32
0
votes
1 answer

Using custom nameservers

In Godaddy I have a domain example1.com and www.example1.com with valid A record to my Centos 7 server's IP. I 've created hostnames for that domain, ns1.example1.com, ns2.example1.com with the same server IP. I have another doamin example2.com in…
Michael Chourdakis
  • 189
  • 1
  • 2
  • 11
0
votes
2 answers

Node.js: IP generated from my web hosting domain is "not available" (can't setup a https server)

I'm creating a brutally simple HTTPS server on render.com using Node.js, which upgrades to WebSocket communication. Here's the code: const https = require('https'); // Create an HTTP server const server = https.createServer((req,…
0
votes
1 answer

Serving 2 different websites from the same IIS server on the same port

I have 2 different websites: mysite.com api.mysite.com I want to be able to serve both of these websites from the same webserver (same IP) and same port number. I have followed this document, and created the following websites: This is how the…
Hooman Bahreini
  • 518
  • 6
  • 17
0
votes
1 answer

My website is available if I type the hostname ip in the broswer, How to fix

My website is available if I type the hostname ip in the broswer How to fix this and redirect it to my website or what to do? I manage to found some info in previous similiar answers server block with default_server in the listen directive. This…
0
votes
1 answer

hostname changed without me changing anything

My hostname changed to "cpe-172-101-0-1.maine.res.rr.com systemd-resolved" without my consent on fedora 37. When i type journalctl -u systemd-hostnamed.service journalctl -xe entry is: févr. 05 16:27:25 cpe-172-101-0-1.maine.res.rr.com…
user969856
0
votes
2 answers

$_ENV['HOSTNAME'] not being set, potential problem with Apache?

I have 3 LAMP servers. Today I have noticed many of the following in the PHP error log: [11-Feb-2010 10:58:03] PHP Notice: Undefined index: HOSTNAME in ... Of course, this is happening in PHP when I do this: echo $_ENV['HOSTNAME']; When I run…
mmattax
  • 1,304
  • 7
  • 19
  • 30
0
votes
1 answer

How to Make the IP Address Appear as Part of Bash Prompt?

Running an Amazon EC2 instance with Ubuntu 22.04. The elastic ip address is 52.120.94.72. I want the bash prompt to read like this (no space) della@52.120.94.72:~/working_directory$ Based on some advice on the net, I edited the top of the…
Della
  • 175
  • 1
  • 1
  • 5
0
votes
1 answer

ESXi using DHCP, IP is accessible, Host Name isn't

I have a brand new ESXi host, configured for dynamic IP via DHCP, and I can access the web interface with the IP address, but not the host name. I thought (with a very shallow understanding, to be sure) that the client broadcasts host name and MAC…
Gordon
  • 175
  • 6
0
votes
0 answers

can't set a windows docker container hostname in the hosts file

I set a windows docker container to run some software (abbyy fineprint) that needs to match the docker name (abbydock) with the localhost ip (127.0.0.1). I'm starting the container with docker run -h abbydock.... What I've done is to add an entry in…
0
votes
1 answer

How to add multiple hostnames in private DNS zone in Azure to resolve hostnames for VNET?

I have an AKS (Azure Kubernetes cluster) that is on a VNET (Azure Virtual Network) that needs to connect to multiple On-prem hadoop machines to read/write data. I have a private DNS zone connected to VNET to resolve hostnames to IP - I tested with a…