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
6
votes
7 answers

Why does the MySQL built-in function 'current_user()' return a hostname containing a '%' symbol?

Does MySQL have built in function to get host name? Similar to select user(); //this returns user@userip Edit: select current_user(); //returns user@10.0.3.% Last symbol is % -- why?
Edmhs
  • 3,645
  • 27
  • 39
6
votes
0 answers

How does socket.gethostbyname work?

How does the python function socket.gethostbyname work? Specifically, how does python obtain the ipv4 address from the fully qualified domain name?
category
  • 2,113
  • 2
  • 22
  • 46
6
votes
2 answers

Change hostname for AWS ec2 instance

I have an AWS EC2 instance with domain like http://ec2-some-ip-addres.compute-1.amazonaws.com/ Now I want to change this url (add a custom domain which is not registered) to some small alias like testing.webserver.com etc. Can we do that? I have…
Rahul Sagore
  • 1,588
  • 2
  • 26
  • 47
6
votes
4 answers

port redirect to docker containers by hostname

I want to setup serve multiple sites from one server: 1. http://www.example.org => node.js-www (running on port (50000) 2. http://files.example.org => node.js-files (running on port 50001) Until now I only found out to have docker doing port…
bodokaiser
  • 15,122
  • 22
  • 97
  • 140
6
votes
2 answers

Classify node processes together with MPI and FORTRAN

I am trying to make an implementation using MPI and Fortran that separates processes wich are on the same node to groups. Does MPI have a routine that can identify that? I had the idea of separating these processes by their hostnames, that are the…
6
votes
1 answer

Java - InetSocketAddress hostname with accents

I encounter a problem establishing a connection with an server that has some accents (é è ô...) in its hostname. For example : String oUrl = "www.hôtel.fr"; System.out.println(oUrl); InetSocketAddress isa = new InetSocketAddress(oUrl.toString(),…
Damien
  • 63
  • 5
5
votes
3 answers

How to get a simple computer name (without the domain name) out of a full computer name in c#?

Can I get just a simple computer name (without the domain name) from a fully qualified name (can be with or without a domain name)? Is it possible for a computer name to have a dot (.) sign in it? (this question seems to be doing the reverse)
Louis Rhys
  • 34,517
  • 56
  • 153
  • 221
5
votes
1 answer

How do I get the hostname of a connected client in java?

I'm writing a server application and I want to get the hostname of the connecting client, how would I go about doing it in java? clientSocket.getInetAddress().getHostName() keeps giving me the IP address instead of the hostname, what's wrong? where…
shawn
  • 4,063
  • 7
  • 37
  • 54
5
votes
1 answer

SSL-specific hostname in Heroku with Rails 3.1

I currently have a setup where I force SSL or http where I need it with this before_filter in my application controller: def force_ssl if params[:controller] == "sessions" if !request.ssl? && Rails.env.production? redirect_to :protocol…
Eric Yang
  • 1,881
  • 1
  • 18
  • 23
5
votes
3 answers

InetAddress.getByName fails behind proxy

I'm trying to resolve a host name to its' corresponding IP. My environment is a mac in a corporate network behind a proxy server, which is configured with a .pac file via the system preferences (automatic proxy configuration). So far everything is…
Benjamin
  • 217
  • 2
  • 10
5
votes
1 answer

ssh: Could not resolve hostname github.com error

I am using raspberrypi terminal using vnc viewer at window and I am trying to clone Git repository. But I am keep getting this error message. ssh: Could not resolve hostname github.com: Temporary failure in name resolution fatal: Could not read…
nova26
  • 51
  • 1
  • 1
  • 3
5
votes
1 answer

Is a network device hostname determined by the device itself or a network admin?

I have a local network with several PCs and specialized controllers on it. These specialized controllers must be configured with static IP addresses and do not have DHCP capabilities. I was asked to put together a list of the device hostnames and…
Izzo
  • 4,461
  • 13
  • 45
  • 82
5
votes
1 answer

Does anyone know why XAMPP has a host name ec2amaz-1qpqh3j with full privileges and no password protect?

I recently downloaded XAMPP to my local PC. In phpAdmin, User accounts, there is a host name "ec2amaz-1qpqh3j". I can easily remove the host from my phpMyAdmin. That is not my concern. I just want to pull attention to the latest XAMPP version…
Mugé
  • 452
  • 3
  • 15
5
votes
2 answers

Invalid URI: The hostname could not be parsed via our custom rewrite IHttpModule

This is a strange error we're seeing sporadically on our website. The strange thing about this error is it's being thrown in our URL rewritting IHttpModule. The line in question is: var host = context.Request.Url.Host; If I record…
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
5
votes
2 answers

InetAddress.getLocalHost() returns wrong result when hostname is 64 chars

I am using below code to print out hostname of a linux box using java 1.5 public static void main(String a[]) { System.out.println( InetAddress.getLocalHost().getCanonicalHostName() ); } When I have hostname of the system a 64 char length…
Nishan
  • 2,821
  • 4
  • 27
  • 36