Skip to main content

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.

0 votes
2 answers
51 views

How to get the host name in Zig

I am very new to Zig, and I want to get the host name of my machine. There was a std.os.gethostname() function in Zig, but it's gone now (currently using v0.12). There's a std.c.gethostname() function,...
Luxcih's user avatar
  • 9
-1 votes
1 answer
42 views

Why can't I resolve the hostname found in traceroute by nslookup/dig ? [closed]

Here I found some router hostnames in traceroute: ... 3 10.30.31.1 10.30.31.1 1.271 4 46.33.68.129 ae1-1989.cr4-ams2.ip4.gtt.net 2.697 5 213.200.117.58 ae15.cr6-ams1.ip4.gtt.net 2.098 ...
Rixton Yunze Wei's user avatar
1 vote
0 answers
16 views

The hostname_script is not setting ec2 instance name

I am passing below user_data to aws_instance resource and found the host didn't get renamed as per the my requirement user_data = jsonencode({ cluster_name = local.cluster_name, ...
PRASHANT GANJI's user avatar
0 votes
0 answers
45 views

'svc_payment_dev'. The domain name provided is not valid according to RFC 1034/1035

Upon sending requests to the dockerized Django app through the API gateway layer using the container name (svc_payment_dev), I faced an issue indicating that the domain name provided is not valid ...
Amir Hossein maleki's user avatar
1 vote
2 answers
81 views

How can I cleanly do a lookup of a value with a substring extracted from a hostname in bash?

the following bash regex will set the memory variable according to machine hostname name we have in the lab many machines with different name as following small example presto01 presto02 hadoop01 ...
Judy's user avatar
  • 1,817
1 vote
0 answers
87 views

Flutter app unable to resolve hostname for ping operation

I have developed a Flutter application that allows users to enter an IP address or hostname and performs a ping operation to determine its status. However, I encountered an issue where the app ...
Adel's user avatar
  • 81
0 votes
3 answers
86 views

Python, Special case to extract hostnames?

I've seen similar problems but mine is quite different and I can't solve it alone. Given a line of text I want to extract only the hostname, below are examples of input - output pairs I'm expecting: ...
Omer's user avatar
  • 31
-1 votes
1 answer
722 views

Ansible hostname module, set hostname based on IP address

I'm trying to use the ansible hostname module to change hostname of multiple Raspberry Pi Compute Module 4. Because they are all based from the same Raspberry Pi OS image, their hostname is ...
Nicolas CASAUX's user avatar
1 vote
1 answer
331 views

How do I `hostnamectl set-icon-name` via Ansible?

Red Hat has a command called hostnamectl set-icon-name. Is it correct to configure this using Ansible? The usual command ansible.builtin.shell: "hostnamectl set-icon-name {{ inventory_hostname }}&...
ZULI's user avatar
  • 55
0 votes
1 answer
128 views

What is the returned hostname when client is localhost?

I am applying a simple client server tutorial in Java as follows: public class Client{ public static void main(String[] args) throws IOException{ Socket s = new Socket("localhost"...
Osama El-Ghonimy's user avatar
-1 votes
1 answer
33 views

What are hostnames acutally used for?

Is there any other use besides mDNS for computer hostnames? I could not really find a good explanation online.
Fexl's user avatar
  • 59
1 vote
2 answers
251 views

Powershell Script to get list of local admins on multiple remote PC's

I almost have this but getting an error when inputting multiple computer names through the prompt input separated by comma. Individual computer name works. $hostname = Read-Host -Prompt "Enter PC ...
dptc19's user avatar
  • 13
0 votes
1 answer
143 views

Can ping server using IP address but not with a hostname on an OpenVPN

I have a server in the cloud (AWS EC2 Windows Server 2022) where an application server will run which I also turned into my OpenVPN server. I was able to set up both the server and clients, I can even ...
Everard's user avatar
  • 93
0 votes
0 answers
53 views

Why sys:hostName property in log4j2-spring.xml returns just hostname and not host and domain both in JDK 17?

I am migrating a spring boot application from spring boot 2 to spring boot 3 which requires to upgrade Java too. Why in JDK 1.8 log4j2-spring.xml ${sys:hostName:-NA} returns host & domain name ie. ...
Tom's user avatar
  • 11
0 votes
0 answers
93 views

Cannot get resolved hostname from pyshark/tshark output

I have a wireshark pcapng file with some network scan results. I want to the following fields: source ip, destination ip, source hostname, destination hostname and protocol. When I open the file with ...
cornisto's user avatar
  • 201

15 30 50 per page
1
2 3 4 5
78