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

mysql hostname with path "localhost:/some/path/ms.sock"

Im connecting to mysql database with server defined as localhost:/some/path/ms.sock, can anyone explain how does this works? It surely is a path since localhost:/some/../some/path/ms.sock works as well, but when i run this exec from php mysqldump -h…
kajacx
  • 12,361
  • 5
  • 43
  • 70
-1
votes
2 answers

Changing Linux hostname using PHP script

I'm trying to change the Linux hostname with PHP script. I could do it directly on the Linux machine using the command hostname But when I use the below PHP Statement .. it didn't work. system('sudo hostname '.trim($Host)); Please suggest a…
KiranD
  • 433
  • 2
  • 7
  • 20
-1
votes
1 answer

Host name lookup failure in send mail

I am sending mail via Sendmail. But it gives error in maillog "Name server: mail.example.com: host name lookup failure." What might be the problem?
Ruchi
  • 449
  • 2
  • 7
  • 15
-1
votes
1 answer

How to set environment variable for hosting and port

I have a coding like this var express = require('express'); var app=express(); var mongodb = require('mongodb'); var Db=require('mongodb').Db; var Server=require('mongodb').Server; var client=new Db('healthdata' , new…
silvesterprabu
  • 1,417
  • 10
  • 30
  • 46
-1
votes
1 answer

Why does "..localmachine" resolve to local machine ipv6 address on Windows?

I find it odd the other day that ping ..localmachine works on Windows 7 If you Win+R, type \\..localmachine\ it will open local machine share folder. I have a web server listen on 0.0.0.0 port 8080 This python script…
est
  • 11,429
  • 14
  • 70
  • 118
-2
votes
1 answer

How can I get devices name after gathering all the IP addresses connected in a network? Flutter

I am using lan_scanner flutter package to gather IP Addresses of a network.I want to also get the hostname of each particular address. Any ideas on how can I achieve that? I tried using some other packages but to no avail.
Panos_42
  • 9
  • 1
  • 5
-2
votes
1 answer

DNS Hostname RegEx Timeout for particular domains

I have ^\*|^(\*\.)?((xn\-\-)?_?[a-zA-Z0-9]+([\/\-_]*[a-zA-Z0-9]+)*_?(((\.xn\-\-)|\.)[\-_]?[a-zA-Z0-9]+([\/_\-]*[a-zA-Z0-9]{1,}){0,})*\_?\.?)?(((xn\-\-)?_?[a-zA-Z0-9]+(((\.xn\-\-)?|[\-\._])[a-zA-Z0-9]+)*\.)*(xn\-\-)?[a-zA-Z0-9]{2,})?\.?$ This regex…
-2
votes
1 answer

How can i resolve this error: ssh root @[hostname] ssh: Could not resolve hostname root: Name or service not known

ssh root @[hostname] ssh: Could not resolve hostname root: Name or service not known This is the error i'm receiving when i try to connect to the server. I'm using WSL Ubuntu on windows, i don't know why i'm recieving this error please help me.…
-2
votes
1 answer

Check if hostname is in an array with JS

Why does this code doesn't work ? (it is part of a chrome extension), I don't understand why using this method to check if the hostname of the current page is in the array ac_websites does not work. I am not sure what window.location.hostname…
Polymood
  • 397
  • 3
  • 14
-2
votes
1 answer

Can not give host name to website via IIS

I developed a website using .net core Razor Pages. I want to publish the website from the server using IIS. Now the website is only reachable by IP address and port number because when I give hostname it does not work. I got an error that "could not…
-2
votes
2 answers

Javascript regex to allow numbers and special characters like dot(.) and colon (:) for validating specific hostnames

I have below host name and i want regex for the same 127.0.0.1:8181 The input contains numbers, dot(.) and colon (:) I used below regex, but none of them worked ^([0-9]|#|+|*)+$ ^[0-9*#+]+$ Adding my code snippet below var guidRegex = new…
Ajithesh Gupta
  • 87
  • 2
  • 13
-2
votes
1 answer

Re-generate new x509 certificates with an updated CommonName

I have an encoded x509 certificate and I want to update the CommonName (aka Subject or host name). Here's the code that I have thus far (simplified): import ( "crypto/tls", "crypto/x509" ) ... // parses a public/private key pair from…
jersey bean
  • 3,321
  • 4
  • 28
  • 43
-2
votes
1 answer

Website hostname works but not IP Address

I have for example this websites: https://ninja-copy.com/, http://www.amxmodx.cz, ... (choose first one) and I need to get IP Address of it.Using cmd I pinged it, IP Addess is 188.166.116.95.But the problem is when I try to connect to this webserver…
loumadev
  • 371
  • 3
  • 12
-2
votes
1 answer

Nameserver Change Not Working

HELP! I'm new to the whole VPS world! I changed from a shared server to a VPS! I think I set up my server properly! Along with migrating previous content! However, I'm not sure I created my Hostname and Nameserver right. This is because, I…
-2
votes
1 answer

C# Get computer name from IP

I'm using Xamarin Studio to develop to iOS and I need a couple of functions to get the Computer Name from the IP and vice-versa I've tried this code to get the machine name from IP string machineName = string.Empty; try { IPHostEntry hostEntry =…
Pedro Cavaleiro
  • 835
  • 7
  • 21
1 2 3
77
78