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
1 answer

How do I resolve and IP Address from a Host Name on iOS

I need to resolve an IP address from a hostname in iOS. I know this is trivial using NSHost, however NSHost resolution capability seems to only work on OSX. Thanks in advance.
Slappy
  • 4,042
  • 2
  • 29
  • 41
4
votes
1 answer

www and subdomains in /etc/hosts

I'm setting up Ubuntu for the first time and I'd like to use this as a server to host websites: www.something.net blah1.something.net blah2.something.net what do i need to set up as the hostname? and how does this need to be set up in /etc/hosts…
user1337645
  • 473
  • 8
  • 16
3
votes
1 answer

What environment variables are presented to a Fortran program for GET_ENVIRONMENT_VARIABLE

I would like to use the value of the $HOSTNAME environment variable in my Fortran code. My attempt to do so is: CHARACTER(LEN=100) :: hostname INTEGER :: status_value = 0 CALL GET_ENVIRONMENT_VARIABLE("hostname",hostname,…
EMiller
  • 2,792
  • 4
  • 34
  • 55
3
votes
1 answer

Change hostname for redirect in Rails using Devise

I've got some special setup to do for my Rails app. My app is hosted behind a reverse proxy and it is for some reason rewriting the requests. The server the app runs on only has an internal IP address. The reverse proxy has the public address and…
halfdan
  • 33,545
  • 8
  • 78
  • 87
3
votes
2 answers

Maven in Intellij IDEA cannot resolve symbol env.HOSTNAME

I searched all over for a resolution to this problem, but could not find anything specific to my setup. Finally, one of our sys admins figured it out. I am running Intellij IDEA on Ubuntu 11.10. My Maven pom.xml file was unable to resolve a…
3
votes
2 answers

Reverse DNS, sending emails and hostname

I don't understand this "reverse dns" thing at all. So, I have a website - www.someurl.com, and I have an ip address - http://180.160.160.190 (fake). Now, I want to setup a "reverse dns" thing, so that emails that I send out won't be marked as spam.…
bharal
  • 15,461
  • 36
  • 117
  • 195
3
votes
6 answers

Regex match a hostname -- not including the TLD

I need to match a host name--but don't want the tld: example.com =~ /regex/ => example sub.example.com =~ /regex/ => sub.example sub.sub.example.com =~ /regex/ => sub.sub.example Any help with the regex? Thanks.
Mike
3
votes
3 answers

process-local override of name resolution?

I have test code that I want to have a couple of hostnames resolve to the loopback while testing. When deployed, this code will use the normal system name resolution as appropriate. Test and deployment host are recent linux distros (SLES11SP1,…
Brian Cain
  • 14,403
  • 3
  • 50
  • 88
3
votes
1 answer

How to set the hostname on a G1 Phone

I have a root'd G1 phone, and I would like to set its hostname. As root I can run the hostname command and set it, but the name does not survive reboot. First, I tried creating a /etc/hostname file that only contained my hostname, but that did not…
Rob
  • 3,687
  • 2
  • 32
  • 40
3
votes
3 answers

Getting Mac Address and Hostname with Cygwin

I need to write a script that would get hostname and all physical addresses on my local machine. It will be run on the several machines. After some research I've found out that I can get hostname from the $HOSTNAME variable and I also found getmac…
Jandrejc
  • 499
  • 3
  • 9
  • 18
3
votes
4 answers

Changing the hostname for tests in Rails

Apparently, while running tests in Rails, the hostname is "www.example.com". If I run root_url in a test it'll return "http://www.example.com/". Since I'm doing an app that requires another hostnames, is there a way to change the default hostname to…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
3
votes
1 answer

Ansible inconsistent value for ansible_fqdn

The variable {{ansible_fqdn}} can take two different values: the server's short name (server300) or its long name (server300.prod.x.y.z). When we use this variable in the playbook to retrieve a file {{ansible_fqdn}}.crt, depending on the value…
RotS
  • 2,142
  • 2
  • 24
  • 30
3
votes
1 answer

How to scan all devices on local network using flutter

I am facing a problem with my flutter application I want to get a list of nearby devices on my same network for android 10 and below I am running this command using Process.run: ip neigh show however this command seems to be forbidden on android 11…
Sparks
  • 496
  • 7
  • 16
3
votes
3 answers

How does Apache determine the FQDN?

I'm using Apache2, and when reloading/restarting the server I get this warning: apache2: Could not reliably determine the server's fully qualified domain name, using (my FQDN) for ServerName Everything works fine, but I'm trying to figure out what's…
Peter Stone
  • 3,756
  • 4
  • 23
  • 14
3
votes
1 answer

How to add extra info to BenchmarkDotNet summary?

How can I add extra informationto extend the summary information produced by BenchmarkDotNet? Like: current host name or current (Git) branch name I would like to achieve something similar to this example: Host MachineName:…
ViktorZ
  • 901
  • 1
  • 10
  • 26