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
13
votes
7 answers

Can't connect to MySQL using 'localhost' but using '127.0.0.1' it's ok?

My /etc/hosts file looks like this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters I found…
Peter White
  • 586
  • 1
  • 7
  • 17
13
votes
4 answers

Checklist for changing the hostname of a server

I want to rename one of my Debian linux servers to give it a more descriptive, role-based name. Here are the places I know the name will need to be changed: /etc/hostname & /etc/mailname & execute hostname command /etc/hosts /etc/hosts on other…
Brent
  • 22,857
  • 19
  • 70
  • 102
13
votes
4 answers

Are separate dns records necessary for web and mail on a single server?

When setting up a web/mail server on a single server or VPS with one IP address almost every guide online follows the same structure for DNS: example.com. IN A 192.0.2.0 hostname.example.com. IN A 192.0.2.0 …
Jeff
  • 133
  • 6
13
votes
4 answers

Configure Zeroconf to broadcast multiple names

I want to broadcast multiple host names on a local network only from a single instance of Ubuntu Server 10 with Zeroconf or something similar. It has to be zeroconf or similar because it's going to be used in a virtual machine configuration and…
Jonathan Swinney
  • 470
  • 1
  • 5
  • 16
13
votes
2 answers

/etc/hosts , /etc/sysconfig/network and hostname?

I need to do the hostname changes on a centos server which will serve www.myserver.com What do I need to do in /etc/hosts, /etc/sysconfig/network and with the hostname command? In /etc/sysconfig/network do I need to write this…
benjisail
  • 1,331
  • 5
  • 19
  • 32
12
votes
5 answers

Correctly setting the hostname - Fedora 20 on Amazon EC2

Context I have a Fedora 20 cloud image running on Amazon EC2 (henceforth called the "instance"). And I have some uncertainty about persistently setting its hostname. Goal In this case, let's say I want to set the instance's hostname to…
David Tonhofer
  • 960
  • 1
  • 10
  • 31
12
votes
6 answers

How to make a Macintosh register a Hostname to the DHCP Server?

I have a MacBook running Snow Leopard in our company's internal network, which is basically a Windows domain network. Our TO department complains about my MacBook not specifying a name to the DHCP server. Accordingly, the MacBook isn't resolvable by…
netmikey
  • 233
  • 1
  • 2
  • 7
12
votes
18 answers

Naming Conventions

Possible Duplicate: What are the most manageable and interesting server naming schemes being used? How do you decide on a new hostname?
Mez
  • 457
  • 1
  • 5
  • 15
11
votes
1 answer

Linux - if I change the hostname, which services need to be restarted?

I'm making some system hostname changes across a few environments and this got me thinking... When I change a server's hostname (live), what needs to be modified and which system services require a restart? Assume this is done online without a…
ewwhite
  • 197,159
  • 92
  • 443
  • 809
11
votes
2 answers

nginx server_name based on $hostname

Based on the Nginx wiki the $hostname variable is set to the machine's hostname as returned by gethostname. I tried that and although gethostname doesn't work my Debian box it still returns the host correctly. Then I tried to use that variable…
RoboTamer
  • 502
  • 1
  • 4
  • 17
11
votes
3 answers

Setup IIS 7.5 with multiple website bindings and SSL?

On IIS 7.5 I am trying to achieve this with two websites: Default Web Site is bound to: (blank host header port 80 - http) (blank host header port 443 - https) go.example.com www71.example.com the IP address of go.example.com 2nd web site "Beta"…
JK01
  • 339
  • 2
  • 7
  • 16
11
votes
3 answers

Resolve linux hostname in windows

I have a simple home network with Windows 7 machines and Linux machines (Fedora 12 and 13). I'd like to be able to resolve the Linux machine names from the windows machine. For example: -- Windows 7 ping mylinuxmachine Currently this does not…
10
votes
2 answers

Registering linux hostnames on windows DNS

How do I register DHCP linux client's hostnames in a windows server DNS? I have a small-business mixed network with: DCHP Windows workstations (Example hostname: win1) About 10 machines Machines are on the domain, no special config. DHCP Linux…
Stewart
  • 341
  • 1
  • 3
  • 12
10
votes
1 answer

How do I make protocol foo hostname-aware?

This is a canonical question about hostname-awareness and proxying. I know that some protocols are hostname-aware; that is, when I connect to the HTTP server at www.example.com it knows I want www.example.com's HTTP service, not www.example.net's,…
MadHatter
  • 79,770
  • 20
  • 184
  • 232
10
votes
2 answers

Can the same wildcard SSL certificate be used on different IP addresses and/or boxes?

Example: Wildcard SSL certificate for *.example.com installed on two different boxes. hostEU.example.com A 60.70.80.90 hostUS.example.com A 200.210.220.240 I assume this is a perfectly valid scenario, where the actual hostnames do not reside on…
mr-euro
  • 848
  • 3
  • 14
  • 31
1 2
3
41 42