Questions tagged [hostname]

A hostname is a human-readable nickname that is assigned to a device connected to a computer network and that is 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 a domain name, which is a name in a Domain Name System (DNS), separated from the host specific label by a period (dot). In the latter form, the hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, then the hostname is said to be a fully qualified domain name (FQDN).

1162 questions
5
votes
4 answers

How to check whether hostname is domain name in Go?

How can I check whether URL.Hostname is a valid domain name? I am searching for the exact same behaviour as URI.CheckHostName in the .NET framework.
user6216224
5
votes
2 answers

Where does bash prompt escape sequence \h get the hostname from?

\h is a bash prompt escape sequence that expands to the hostname. Where does it get the hostname from? On my system it shows a value that I cannot find anywhere, not in hostname -f or /etc/hosts or /etc/hostname or /etc/sysconfig/network or…
Michael Martinez
  • 2,693
  • 1
  • 16
  • 19
5
votes
4 answers

Alpine Linux docker set hostname

I'm using lwieske/java-8:server-jre-8u121-slim with Alpine Linux I'd like to set hostname from a text file to be seen globally (for all shells) / # env HOSTNAME=2fa4a43a975c / # cat /etc/afile something / # hostname -F /etc/afile hostname:…
madi
  • 160
  • 1
  • 13
5
votes
3 answers

c# check domain is live

I want to know how I can check if the domain is a live in c#? I made this IPAddress[] addresslist = Dns.GetHostAddresses("domain"); it returns the IP(s), which is good, but I want to check if it is live (like ping)? I just need to know if the PC…
Data-Base
  • 8,418
  • 36
  • 74
  • 98
5
votes
1 answer

hostname in certificate didn't match:<>!=<> WSO2 APIM

I have a https endpoint and I need to access it from wso2 API manager. (uses 1.10).I already added the certificate files to "client-truststore.jks" file. But now it gives an error as follows. hostname in certificate didn't match:!=.…
Anushka Ekanayake
  • 977
  • 2
  • 13
  • 33
5
votes
1 answer

Android Parse implementation cannot verify custom server hostname

When initializing Parse on Android, I am able to successfully connect to the Parse server when: 1) I don't specify a server URL, or 2) I set the server URL to the Parse server. Because we intend to ultimately migrate our data from Parse to a…
eimie
  • 93
  • 9
5
votes
1 answer

How to get the host name in spring configuration file?

Is there any easy way to get the host name in spring configuration file ? Currently I am using Java code to get the host name and and auto wire the property in the bean . But looking for less coding approach if any ! Thanks
Gopi
  • 619
  • 2
  • 9
  • 27
5
votes
1 answer

How to know current server name where the code is running using shell script?

I have a shell script code, which can run on any one of the 6 servers and one file gets updated. But I need to maintain a common file to get the most updated changes in the file and apply certain logic on the latest file. So, I want to know the…
tanmayghosh2507
  • 773
  • 3
  • 12
  • 31
5
votes
2 answers

Google Analytics /Cpanel getting spam hostnames

Over the last few weeks I have seen a lot of 00:00:00 sessions come from spamming servers. I want a way to not only block them in Analytics but also in cPanel if possible. If anyone knows the best way to remove all spamming hostnames please share.
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
5
votes
0 answers

How do I broadcast a hostname using Ruby's net-mdns?

I'm new to net-mdns and mDNS in general, so I have just a basic understanding of how the protocol works for now, and I hope the question is pretty self-explanatory. So far I've seen some examples of how to advertise a service with net-mdns, but what…
wiz
  • 606
  • 5
  • 9
5
votes
3 answers

iOS error while calling web service, A server with the specified hostname could not be found

Random error I get when I try to call api Following is the snippet from error description. NSLocalizedDescription = "A server with the specified hostname could not be found."; NSUnderlyingError = "Error Domain=kCFErrorDomainCFNetwork…
Amit Agarwal
  • 71
  • 1
  • 6
5
votes
3 answers

Is there a PHP function or variable giving the local host name?

When a script runs under Apache, I insert $_SERVER['SERVER_NAME'] value into an error reporting e-mail message. However, if a Web script forks a "worker" job with nohup php ..., $_SERVER['SERVER_NAME'] appears to be empty there. Thus, if an error…
Ivan Krechetov
  • 18,802
  • 8
  • 49
  • 60
5
votes
1 answer

Hostname in tomcat cookies

Our Tomcat creates session IDs with the following format: jsessionid=a345465820fce654354646ae.(server-name); Is it possible to configure it so that server-name is not part of session id?
j_maly
  • 1,091
  • 1
  • 13
  • 27
5
votes
4 answers

Getting IP addresses for hostnames using nslookup in Powershell

I am new to Powershell scripting and I need to write one script. I have a list of server hostnames and I need to get IP addresses of those servers and write the results in a file. The hostnames are one column in Excel spreadsheet but I can format…
Ondrej Lebl
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

Hostname discovery for all machines on a network

Problem: I am developing a graphical front end for a distributed CPU/GPU simulator. As this simulator utilizes MPI, it requires a hostfile detailing the hostnames for all computers being used on the network so that it knows what machines to…
Sir Digby Chicken Caesar
  • 3,063
  • 1
  • 23
  • 31