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

block requests by user hostname using htaccess

Recently, my wordpress website has been experiencing a spike in hack attempts by various IPs but they all have the same user Hostname: A user with IP address xxx.xxx.xx.x has been locked out from the signing in or using the password recovery form…
4
votes
2 answers

Rails: Get hostname in an initializer

I'm using Sorcery for Authentication, and I need to setup third party authentication in its initializer. The initializer has a line that looks like this: config.twitter.callback_url "http://example.dev/auth/callback?provider=twitter" ...where…
Andrew
  • 42,517
  • 51
  • 181
  • 281
4
votes
1 answer

Puppet Behaviour not consistent in Amazon VPC

I'm testing out puppet in Amazon VPC and found out its behavior is not consistent. In Amazon EC2, puppet works out perfectly fine. But while running puppet manifests in Amazon VPC, sometimes it runs properly..sometimes not. root@ip-10-0-0-123:~#…
Sanket Dangi
  • 1,185
  • 9
  • 16
4
votes
0 answers

Docker hostname in compose for SQL Server images

When spinning up a new SQL Server 2022 (or 2019) Docker container using -h or --hostname docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=dev1234#" -p 1633:1433 --name sql22new --hostname sql22new -d…
4
votes
5 answers

Full URLs in Rails logs

Is it possible to get the full URLs in the logs of a Rails application? Currently I'm getting something like: Started GET "/" for 127.0.0.1 at 2011-08-27 13:13:10 +0200 but I need to get: Started GET "http://localhost:3000/" for 127.0.0.1 at…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
4
votes
9 answers

How do you tell whether a string is an IP or a hostname

So you have a String that is retrieved from an admin web UI (so it is definitely a String). How can you find out whether this string is an IP address or a hostname in Java? Update: I think I didn't make myself clear, I was more asking if there is…
user10059
  • 99
  • 2
  • 6
4
votes
2 answers

Spark 2.4 Got an error when resolving hostNames Falling back to /default-rack

Running an application in in client mode, the driver logs are printed with the below info messages, any idea on how to resolve this? Any spark configs to be updated? or missing? [INFO ][dispatcher-event-loop-29][SparkRackResolver:54] Got an error…
Darklord
  • 61
  • 1
  • 5
4
votes
1 answer

AWS CloudWatch Agent Windows - hostname not showing as a dimension in Metrics

CloudWatch agent version: 1.3.411.60 The Objective: Get the localhost name of Windows EC2 instance to be a dimension (column) for each metric configured. So that you can filter by the instance's ComputerName Per the AWS Docs for creating a…
4
votes
2 answers

Connecting by Hostname

I have a server running on my local machine (Windows 7) that listens to incoming tcp sockets connection. On the same machine I'm running Android Emulator through IntelliJ. The connection gets established When executing: Socket socket = new…
galbarm
  • 2,441
  • 3
  • 32
  • 52
4
votes
3 answers

Get local IP Address from a known MAC Address in Python?

I am running a Python Script on the Raspberry Pi in order to get measured data out of a Smart Plug. In my script I need to write the IP-Address of the Smart Plug so that I can retrieve the data it was measured. The problem is that I need to be able…
xoani
  • 107
  • 1
  • 1
  • 13
4
votes
6 answers

C++ string matching(hostname and port)

I want to seperate a const char* hostName in the form of "hostName:port" to a const char* hostNameFinal and a number port. I have currently following code: const char* hostName = "localhost:643246"; long int port; char…
luac
  • 41
  • 1
  • 2
4
votes
3 answers

How to assign hostname to the web server?

I am using lighttpd as my webserver. Currently I am accessing it using the IP address as : http://192.168.0.1 I want to access it as http://myhostname.com I would be using it in the local network only, and not the internet. I don't know how to do…
Mahendra Liya
  • 12,912
  • 14
  • 88
  • 114
4
votes
1 answer

Azure Migrating Website Hostnames

I am trying to set up a secondary azure website in a different subscription. When creating the Custom Hostname for the new site location, I am forced to validate the hostname. Azure complains that the hostname is registered against a different CNAME…
Rod
  • 245
  • 2
  • 10
4
votes
3 answers

differences between hostname and fully qualified domain name(FQDN)

First of all I searched the site for similar topic, and read the RFC 1535 and FQDN wiki, they don't seem to answer the question. Let me use www.youtube.com as an example. Python script I used: import socket for host in ["www.youtube.com"]: …
oNion
  • 125
  • 3
  • 9
4
votes
2 answers

Obtain the DFS path of a network location in Python

I want to obtain a ping-like response from a Windows network location that has a Distributed File System architecture e.g. path = r'\\path\to\some\shared\folder_x' delay = ping_func(path) print delay # return response in milliseconds ? 234 Once I…
Alexander McFarlane
  • 10,643
  • 9
  • 59
  • 100