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

Get the host name from url without www or extension in asp.net

Hello i need a way to find out the host part of an url , i've tried Request.Url.Host.Split('.') but it doesn't work with url like this: sub.sub.domain.com or www.domain.co.uk since you can have a variable number of dots before and after the…
sparrows81
  • 431
  • 3
  • 6
  • 19
0
votes
2 answers

How to get hostname in Solaris machines, through perl script?

I tried this in linux machines my $a = $ENV{HOSTNAME}; print "\nhostname = $a\n"; i get this, hostname = sims5.eng.netapp.com i tried same in Solaris, but i get nothing. hostname = I can use below code, use Sys::Hostname; $host = hostname; but…
user2380503
  • 21
  • 2
  • 3
0
votes
1 answer

Scannig the local network and get MAC, IP and Hostname in C++ or C#

I'm in trouble finding a suitable solution to my problem, and I hope you can help me with. I wanna scan the local network in a Windows 7 environnement, and I must return: - IP - MAC address - hostname Of all PC in the local network. I was looking on…
0
votes
2 answers

Resolve IP Address to obtain Alias

I want to resolve a IP address but I don't get the desired result. I want to retreive the real web name something like this: http://www.google.com But what I get is: mad01s14-in-f6.1e100.net Public Function IP_To_HostName(ByVal IP As String) As…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
0
votes
2 answers

How can I get my hostname within a function?

the unix hostname program gives me an exceedingly simple way to get my "real" hostname (not localhost. For example, for me it's currently unknown74e5[...]df7.att.net). But how can I do this inside of my own code with C system calls? I'd like to get…
limp_chimp
  • 13,475
  • 17
  • 66
  • 105
0
votes
1 answer

C# determining if an IP address represents a real host

Problem: there's an input field in an application where the user can enter either a host name or an IP address. I need to tell if the entered address corresponds to a real host. I'm not talking about a simple regular expression check or an…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
0
votes
2 answers

Symfony2 and hostname problems

I can try to map the url the next way: en.test.example.local | en.example.com AND admin.test.example.local | admin.example.com With admin I don't have any problem working fine but, when I try to begin the uri with a variable the symfony…
aperez
  • 121
  • 1
  • 13
0
votes
1 answer

Clickonce application error on mac based windows platform

I developed my application in visual studio 2008 and i deployed it on many computers with windows paltform. Its working fine but there is one mac book who has virtual windows 7 over it. my clickonce appliaction is working fine for the first time on…
U Nazir
  • 427
  • 1
  • 5
  • 11
0
votes
2 answers

Windows Hosted WCF Service Returns 400 Bad Request Invalid Hostname To JAVA Client

As the title indicates I have a WCF Service hosted in a Windows service. When I use the Visual Studio WCFTestClient it the GetVersion() Method (which just returns a string) works fine. When I attempt to call the same method from a Java client I get…
Cef
  • 661
  • 1
  • 6
  • 26
0
votes
2 answers

wget - http://: Invalid host name

I'm using wget to automatically download the ShellEd extension for Eclipse, but am receiving an error: http://: Invalid host name. I have used it successfully several times before, so I think it's because SourceForge uses a mirror. I've looked at…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
0
votes
1 answer

How to get remote hostname via Expect?

I am trying to automate some commands on a remote Unix system using Expect, which try to fetch data based on the remote hostname. An example, expect -re $prompt send "lsnrctl status listener_`hostname`\r" The problem is, when run via Expect, this…
Jenson Jose
  • 532
  • 2
  • 15
  • 33
0
votes
1 answer

Configuring hostname for memcached on EC2 instances

I'm using Memcached on each of my EC2 web server instances. I am not sure how to configure the various hostnames for the memcache nodes at the server level. Consider the following example: addServer('node1',…
Jason McCreary
  • 71,546
  • 23
  • 135
  • 174
0
votes
1 answer

Changing the Linux Hostname with python

I am trying to change the linux hostname by having a python program randomly select a name from a file then setting that as the host name. The code works only when the random digit value is 1. What am I doing wrong? The code I am using is…
Evan Bloemer
  • 1,051
  • 2
  • 11
  • 31
0
votes
1 answer

How to pass array of "hostnames" in "InetAddress" method rather than passing one single hostname

How do you pass multiple "hostnames" in following chunk of code where we are only passing one hostname? Is it possible? private static void run() { String host = "www.google.com"; try { inetAddress = InetAddress.getAllByName(host); …
0
votes
1 answer

Server-Address in client-side java

I'm trying to get the address that the client has accessed my server. If the client accesses the server with http://localhost:8890 then the server should read exactly http://localhost:8890. If the client accesses the server with…
Protomen
  • 9,471
  • 9
  • 57
  • 124