Questions tagged [hostname]

Hostname is a label assigned to a device connected to a computer network 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 the name of a DNS domain, separated from the host specific label by a period (dot). In the latter form, a hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, the hostname is said to be a fully qualified domain name (FQDN).

Hostnames that include DNS domains are often stored in the Domain Name System together with IP addresses of the host they represent for the purpose of mapping the hostname to an address, or the reverse process.

Source: Wikipedia.

624 questions
7
votes
3 answers

How does Windows resolve hostnames without DNS?

I have a Windows 7 computer and a MacOS X 10.6 computer that are connected to the same LAN using a 10$ hub. On MacOS I set the computer name to "mymac.local" in "preferences->sharing". The Windows computer has a static IP address of 192.168.0.10 and…
grigoryvp
  • 3,655
  • 11
  • 39
  • 59
7
votes
3 answers

IIS asks for login/pass when accessed using hostname but not when 'localhost' is used. Why?

I have setup IIS on my xp machine and have setup a default homepage (that comes with the IIS installed). It is a help page I think. when I access the page with http://localhost it works fine (IE/Chrome or FF) but when I access it using…
sb.
  • 73
  • 1
  • 1
  • 4
7
votes
2 answers

MySQL command appends '@localhost' to username

I just can't seem to figure this one out. I want to use the command line to connect to a MySQL database residing on another server. I went ahead and created the username and password for the user. I have also granted all privileges on that user…
Phanto
  • 891
  • 5
  • 16
  • 24
7
votes
2 answers

postfix uses hostname instead of myhostname

I am trying to set up an outgoing mail server for sending emails which is to relay to our ISP. In /etc/postfix/main.cf I have myhostname to ourcompany.example.com and myorigin and mydomain to $myhostname. ourcompany.example.com is resolvable. But…
sunny.oxide
  • 71
  • 1
  • 1
  • 3
6
votes
3 answers

When specifying a "host name", do we still need to specify a port?

https://en.wikipedia.org/wiki/Virtual_hosting says Name-based virtual hosts use multiple host names for the same IP address. Does a "host name" correspond to an IP address or a pair of IP address and a port? When specifying a "host name", do we…
Tim
  • 1,487
  • 6
  • 28
  • 43
6
votes
2 answers

hostname doesn't persist after reboot in CentOS 7 instance

I'm trying to set a hostname with hostnamectl set-hostname server.domain.tld in CentOS 7 but when I reboot it returns to sp-30.localdomain Always i used that command to change hostname but now is not working, so or i'm missing somethinh or is some…
DiogoSaraiva
  • 409
  • 4
  • 16
6
votes
4 answers

Cannot setup hostname and FQDN Centos 7

I'm now running CentOS-7.0-1406 and looks like i can't setup hostname properly. As far as i know, you need to setup hostname using hostnamectl set-hostname command and write FQDN in /etc/hosts. I have a centos machine and i want to set it's hostname…
John Doe
  • 81
  • 1
  • 7
6
votes
3 answers

Ngrok custom hostname add cname to subdomain

I have xyzfoo.com domain. I created a DNS CNAME record which points to ngrok.com I have my app running locally on http://127.0.0.1:5000/ but not running remotely on zyxfoo.com Does a subdomain need to be used with a custom hostname on ngrok?…
phillipsk
  • 185
  • 2
  • 8
6
votes
1 answer

VPS hostname, ns1 and ns2 prefix

Sorry for the stupid question. I'm completely new to servers in general and I want to sign up for a VPS. On the sign-up page, I have to fill in these fields: I have no idea what I should write into these fields (apart from password obviously), and…
MikO
  • 163
  • 1
  • 1
  • 6
6
votes
3 answers

Same IP on many systems in different environments

I work in an environment where there are multiple locations, and in each locations we have the same IP addressing scheme, that is, we have many machines (one in each location) that share the same IP address (the hostnames are different though).…
Dan Nestor
  • 220
  • 1
  • 2
  • 7
6
votes
3 answers

Vagrant - access guest from host via hostname

I have vagrant 1.2.2 installed in my development machine; a laptop. I use same laptop in three different environments with different networking settings. My VagrantFile looks like: Vagrant.configure("2") do |config| config.vm.box = "lucid32" …
vulcan raven
  • 215
  • 1
  • 2
  • 10
6
votes
1 answer

Someone parked a domain on my server/IP - should I worry?

Possible Duplicate: Is there anything I can do about someone who has pointed their domain at my ip? I'm running a dedicated server with own static IP for a while now. Some weeks ago I noticed while browsing logs some domain showing up and I was…
q9f
  • 640
  • 3
  • 10
  • 21
6
votes
1 answer

Could not resolve hostname in curl, wget, yum on Centos

After I freshly installed a Centos, I can not get yum, wget or curl to work. All I get is : $ curl http://www.google.com curl: (6) Couldn't resolve host 'www.google.com The most surprising part is that ping actually seems to work. ping…
Zenklys
  • 543
  • 3
  • 5
  • 14
6
votes
1 answer

ec2 instance - is it safe to change /etc/hostname?

I'm having several ec2 independent instances(staging and production). They do not talk to each other in any way. Is is safe to modify /etc/hostname for better clarity of what instance you've logged in?
user45286
  • 336
  • 1
  • 4
  • 12
6
votes
5 answers

hostname -f says "hostname: the specified hostname is invalid". Guess why?

hostname -f says "hostname: the specified hostname is invalid". The hostname (FQDN) specified in /etc/hostname is also listed in /etc/hosts and is pingable. No actual DNS server yet of the host knows. Is this a reason of the error reported or…
Ivan
  • 3,398
  • 19
  • 50
  • 71