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

Why do "hostname" and "hostname -f" return each other's value?

I'm using a Centos8 VM to learn puppet. At first, I only set a short hostname for my VM -- puppet-mst. After some failure-- someone told me puppet needs FQDN to proceed. So I set a long hostname for my vm -- hostnamectl set-hostname…
EisenWang
  • 189
  • 1
  • 10
-1
votes
1 answer

output prints on the same line as hostname

I wrote a code using for loop that prints output on the same line. However, after executing the code a hostname displays on the same line as output. Is there any way to avoid it? Code list = ["h", "e", "l", "l", "o"] for x in list: print(x,…
-1
votes
3 answers

Setting up an if statement with window.location.origin in JS

I am looking to delete my navigation menu on the landing page of a site I am building. However, I can't figure out how to ONLY target that page. The way I do it with the other pages, is that I write (window.location.pathname.includes("/pathname"))…
-1
votes
1 answer

Point the hostname of ec2-instance to new IP in DR region

My question is that, I have 2 regions in AWS. One is the source region of ec2-instance and other is the target region for that ec2-instances. In a Disaster Recovery project, when I am doing failover then ec2-instance spin up in target region with…
-1
votes
1 answer

golang user.Lookup on a long hostname (more than 15 characters)

I have some code that is looking up a user SID. The code is simply user.Lookup(username) where username is computername\username. This works great... until you have a computer with a name longer than 15 characters. Then I have to shorten it to the…
Andrew
  • 1,571
  • 17
  • 31
-1
votes
1 answer

ternary operator in SpEL Spring

I have the following expression:
Jelly
  • 972
  • 1
  • 17
  • 40
-1
votes
1 answer

Docker container host name cannot be resolved inside docker network

In my swarm docker-compose file I am creating 7 replicas of apache storm supervisor as shown here. storm_supervisor: image: storm:2.0.0 deploy: replicas: 7 command: storm supervisor networks: - my_network hostname:…
Bob C.
  • 141
  • 2
  • 15
-1
votes
1 answer

How it works for DNS hostname without domain name in enterprise

How can I set the following DNS setting for internal usage? What's the setting method or distinguished name for this? For example, I can type the following three url and all can find the same IP record. a -> 123.123.123.123 a.test.com ->…
tony
  • 91
  • 1
  • 8
-1
votes
1 answer

How to get access to the IIS Websites using Host Name without configuring the host files

I'm currently want to setup websites using the IIS. I'm using the AWS Server. I have 2 websites which I want to setup which is www.a.com and www.b.com. For the first websites www.a.com, I create the sites name websitesa. I already done doing the…
-1
votes
1 answer

When using Ping how can i export only the Hostname and IP to excel or csv

new here and hoping someone might be able to help me with this. I have approximately 200 workstations that have had DHCP reservations completed, I would like to Ping them all and return only the Hostname, IP. If possible to get timed out or, failed…
Jason
  • 3
  • 1
-1
votes
1 answer

In a multi NIC system, which system NIC IP is returned by InetAddress.getByName(hostname)

I have a multi NIC system where NIC_1(public network), NIC_2(private network) are associated with IP_1, IP_2 respectively. Using the system's hostname I tried to get the system IP using InetAddress.getByName(hostname) and I found that the…
Arun kumar R
  • 235
  • 3
  • 12
-1
votes
1 answer

Where does puppet pull the hostname info to name the certs in the ssl directory?

When I spin up my AWS machine, the first thing I do is run hostnamectl set-hostname myhost.test.com but then when I install and run puppet, it is pulling standard-1-ami.test.com as the cert name. standard-1-ami is the name of my AMI. Where is it…
J. Tate
  • 163
  • 1
  • 10
-1
votes
1 answer

Http Client host name is null?

When HttpPost method is with request body to URI "https://app_server.test.com:9100/processes" using HttpClient to execute the HttpPost, I get an Exception: Host name may not be null Sample Code: HttpPost postRequest = new…
krishnaraj
  • 21
  • 3
-1
votes
1 answer

What happens when fire hostname "withsometest" on linux server

Team, today i did some mistake on customer production server. Unfortunately i fired hostname 90 on root terminal. then i typed hostname and it returned 90 instead of actual hostname . It was typo while typing hostname -I. (Checking for IP address…
Siva Krishna
  • 11
  • 1
  • 8
-1
votes
1 answer

.NET Unknown Hostname exception but nslookup works

I am writing a program that downloads FTP files with FluentFTP, but I get the following exception when trying to connect: Host desconocido en System.Net.Dns.GetAddrInfo(String name) en System.Net.Dns.InternalGetHostByName(String hostName, Boolean…
Alejandro
  • 351
  • 4
  • 11