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
4
votes
3 answers

How do I get a symlinked /etc/hostname to take effect at boot

I am working on an embedded Linux device with 3 different Linux partitions. The end use selects which partition to boot from. The root file system is read-only. There is a 4th partition that is mounted read-write. I need all instances of Linux…
schustercp
  • 74
  • 1
  • 5
4
votes
1 answer

How to get Host name of ip address in android?

I want to make a small android app that get ip addresses and host name from LAN network that are connected. I have a code that run great to get ip address in a LAN network which is connected but I don't know how to get host name of their ip…
Umar Iqbal
  • 47
  • 1
  • 1
  • 8
4
votes
0 answers

Unable to get Hostname (Computer name) using InetAddress in android

i am working on one module to scan local network and Ip, Mac, Hostname and other details of other devices connected through the same network. i am unable to get Host PC name from InetAddress class in android. Please check my below code: String…
Rl.Android
  • 41
  • 6
4
votes
1 answer

Nginx reverse proxy, only allow connection from hostname not ip

Is it possible to allow only users typing in xxxxxx.com (fictive), so they should make a DNS-lookup and connect. And block users who uses my public ip to connect ? Configuration: server { listen 80; return 301 https://$host$request_uri; } server…
Jesper Petersen
  • 77
  • 3
  • 10
4
votes
1 answer

write a C++ code to get the hostname

I want to write a C++ Code to get the full information on all the host name, and ip address and sub net mask of computer that has been added to the domain control.
corner2008
4
votes
1 answer

getnameinfo prototype asks for sockaddr not sockaddr_in?

The getnameinfo prototype asks for sockaddr but I have only seen examples using sockaddr_in. Can this example be re-written for sockaddr ? sin_family becomes sa_family but what about sin_port and sin_addr ? How are they included in sa_data ? struct…
Jane
  • 41
  • 2
4
votes
6 answers

Configuring FQDN for GCE instance on startup

I am trying to start a google compute engine (GCE) instance with a pre-configured FQDN. We are intending to run an application that is licensed based on the contents of /etc/hosts. I am starting the instances using the Google Cloud SDK utility -…
The_Viper
  • 391
  • 1
  • 6
  • 14
4
votes
5 answers

Resolve Hostname Error When Accessing Subversion

I get the an error when attempting to do the following commands in Subversion: update, commit, log, list, blame etc. However, diff and info work. The error is the following when using any desktop client, e.g. CollabNet, TortoiseSVN, Intellij,…
David
  • 41
  • 1
  • 1
  • 2
4
votes
3 answers

How can I programmatically determine whether a URI, hostname or IP address is to the local host machine?

Given a target URI, how can I programmatically determine whether an HTTP GET of that URI would be making a request to the local machine? Context: There are two reasons I need to do this. One is that I have a mod_perl2 application that responds to…
DavidBooth
  • 101
  • 1
  • 9
4
votes
1 answer

linux postfix config and hostname FQDN

I'm trying to setup a mail server with postfix and dovecot using the tutorial from https://library.linode.com/email/postfix/postfix2.9.6-dovecot2.0.19-mysql#sph_prerequisites I followed every steps and also opened every mail port in the firewall but…
yves
  • 250
  • 1
  • 2
  • 18
4
votes
2 answers

Get the client hostname in intranet with linux environment using javaScript

I looking for a way to return the hostname of the client, I have seen several posts that say it's impossible to get the machine name, but I think it's possible to have it on the intranet. It's possible ? Thank you.
Mils
  • 496
  • 3
  • 15
4
votes
1 answer

Accessing Guest OS with hostname in VMWare Fusion

I am using CentOS (Cloudera CDH3 image) as a guest OS running in my VMWare Fusion. Everything works fine and I can access the guest machine through my MAC OS using the IP address. I am bridging the network between my MAC and VMWARE machine so the…
reza
  • 1,188
  • 3
  • 17
  • 32
4
votes
1 answer

Java SSL: "fatal error: 80: ... unwrapping net record" after adding the HTTPS EndpointIdentificationAlgorithm

Java 7u9 Error msg in title is: "fatal error: 80: problem unwrapping net record". SO wouldn't let me put "problem" in the title. I am building a Java HTTPS client against Netty. The SSL handshake was working until I added added the "HTTPS"…
Hawkeye Parker
  • 7,817
  • 7
  • 44
  • 47
4
votes
2 answers

How do I replace a hostname in /etc/hosts on debian with Python

I'm scripting a way to set hostname on a Debian system with Python. I succeed at: getting the new hostname from arg1 or if I define it as the value of a variable get the current hostname open /etc/hostname and write the new hostname from the…
user82345
  • 49
  • 1
  • 3
4
votes
1 answer

Why php PDO uses a different from hostname to the one used by mysql_connect() when connecting to a remotely hosted mysql database?

I've mysql database and php/apache on two different servers: let's say hostphp.domain.com and hostmysql.domain.com. On the mysql server I've set a user "my_user" with permissions to connect to "my_database" db from the specific host…
jmelero
  • 83
  • 6