Hostname is a label assigned to a device connected to a computer network used to identify the device.

learn more… | top users | synonyms

85
votes
2answers
32k views

Why does my hostname appear with the address 127.0.1.1 rather than 127.0.0.1 in /etc/hosts?

This may be a bit of a noobish question, but I was taking a look at /etc/hosts on my new Xubuntu install and saw this: 127.0.0.1 localhost 127.0.1.1 myhostname On most 'nixes I've used, the second ...
72
votes
6answers
66k views

Setting the hostname: FQDN or short name?

I've noticed that the "preferred" method of setting the system hostname is fundamentally different between Red Hat/CentOS and Debian/Ubuntu systems. CentOS documentation and the RHEL deployment guide ...
61
votes
6answers
3k views

Choosing between meaningful and meaningless hostnames

Assume an environment with a puppet-managed cluster of different servers - various hardware, software, operating systems, virtual/dedicated, etc. Would you choose meaningful hostnames ...
52
votes
6answers
445k views

How to determine the hostname from an IP address in a Windows network?

My LAN has 50 Windows hosts. At the Windows command line I try ping to get the IP address of a running Windows machine. The question is how to get hostname of a specific IP address in the same ...
35
votes
7answers
36k views

Is it possible to alias a hostname in Linux?

Is it possible to alias a hostname in Linux? It has been asked by jmillikin at various Ubuntu forums as follows: Is it possible to create a hostname alias? Sort of like /etc/hosts, but with other ...
30
votes
3answers
2k views

Is it valid for a hostname to start with a digit?

Is it valid for a hostname to start with a digit? e.g. 8server From reading RFC 1123 it would appear that this is a valid hostname. However, I'm not clear on whether a hostname can only start with a ...
21
votes
6answers
10k views

Is it possible for two hostnames share the same IP address?

Can anyone explain whether it is possible for two hostnames to share the same IP address? And what about if one hostname represents more than one IP address, is that possible too? Why?
21
votes
5answers
7k views

Hostnames - What are they all about?

I've recently been "forced" to perform some sysadmin work, while this isn't something that I absolutely love doing I've been reading, experimenting and learning a lot. There is one fundamental aspect ...
17
votes
3answers
8k views

On Ubuntu 10.04, should /etc/hostname contain the server's FQDN?

On Ubuntu 10.04, should /etc/hostname contain the server's fully-qualified domain name?
14
votes
4answers
1k views

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 & ...
13
votes
5answers
18k views

How do I change Exim4's primary_hostname on a Debian box?

Some remote SMTP server I am trying to deliver mail to refuses to accept the HELO from my server: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname Apparently, my ...
12
votes
1answer
2k views

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 ...
11
votes
19answers
14k views

Naming Conventions [duplicate]

Possible Duplicate: What are the most manageable and interesting server naming schemes being used? How do you decide on a new hostname?
11
votes
4answers
859 views

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 ...
11
votes
5answers
2k views

Are one-letter host names valid?

RFC-952 (last sentence of point 1 under Assumptions) prohibits single-character host names and I have had experiences (over 7 years ago summer of 2002) where some services would refuse to work with ...
10
votes
8answers
7k views

Linux command line utility to resolve host names using /etc/hosts first

There are several command line utilities to resolve host names (host, dig, nslookup), however they all use nameservers exclusively, while applications in general look in /etc/hosts first (using ...
9
votes
2answers
10k views

How to divert traffic based on hostname using HAProxy?

I've had some initial success with HAProxy setting up a bunch of app servers listening on various other ports. I now have another webserver listening on one port, and i'd like to what changes to make ...
9
votes
6answers
15k views

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 ...
9
votes
3answers
24k views

What is the difference between a hostname and a fully qualified domain name?

I am new to the world of setting up servers and am baffled by the term hostname and fully qualified domain name. For example, if I want to set up a server that hosts files on the local network i.e. a ...
8
votes
2answers
3k views

Can I have dots in a hostname?

I'm using names like a.alpha for the hostname of my linux box, but it seams that these name are not completely usable. The response of a hostname shell command is correct (a.alpha). But the name ...
8
votes
7answers
10k views

Unix shell: easy way to get IP from hostname

What is the easiest way to get the IP from a hostname? I was thinking about trying a ping and parse it from the output. However, that doesn't seem very nice and will probably not work the same way on ...
8
votes
4answers
13k views

Will Active Directory Allow You to Add Two Computers of the Same Name?

I'm hoping someone can confirm my observations because I'm questioning my memory... The title kind of says it all. While working rapidly on deploying a number of similar systems, it appeared that we ...
8
votes
2answers
3k views

How can I send visitors to the closest server using DNS?

Is there a way to localize dns entries? Meaning, that users from asia resolve mydomain.com to another ip than users from usa or europe. This would be helpful to give the users the server nearby. DNS ...
8
votes
2answers
9k views

/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 ...
7
votes
1answer
14k views

“My unqualified host name (foo.bar) unknown” Problem

When trying to start sendmail or send a mail using a wordpress plugin, this error shows up in the maillog: "My unqualified host name (foo.bar) unknown; sleeping for retry" After Googling the best ...
7
votes
3answers
4k views

Is the hostname case sensitive?

Is the hostname case sensitive? Is ping MYHOST equal to ping myhost Does it depend on the DNS used? Are there differences between Win/Mac/Unix systems?
6
votes
5answers
3k views

Making iptables easier to maintain

My network is completely locked down except for a few sites which are whitelisted. This is all done through iptables, which looks something like this: # Allow traffic to google.com iptables -A ...
6
votes
5answers
3k views

Resolving host names to their domain name in an internal BIND domain

I'm setting up a domain on my home network for learning purposes, using BIND on CentOS to act as the name server. I've got the name server up and running as type master for my internal domain ...
6
votes
1answer
225 views

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

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 ...
6
votes
3answers
8k views

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 ...
6
votes
3answers
250 views

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 ...
5
votes
2answers
337 views

Why do I need to set a hostname?

I know there's quite a few questions about host names. But even after reading them, I didn't really understand the concept of host names entirely. So here's my question: I've been following this ...
5
votes
2answers
289 views

Validity of a FQDN with a hostname consisting entirely of numbers

Is a FQDN valid if the hostname component is entirely numeric? It's not something I've come across before and I'm not sure if something like the following is legal: 001.example.com. I know it's an ...
5
votes
4answers
3k views

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 ...
5
votes
2answers
21k views

How to set the domain name on GNU/Linux?

Similarly to hostname that can be changed in different ways: temporarily using the hostname command permanently using /etc/hostname (or /etc/sysconfig/network or /etc/HOSTNAME, these files are used ...
5
votes
2answers
162 views

Why should www.domain and mail.domain be used?

I see the default hostname for mail and web servers being set as mail.domain.tld and www.domain.tld respectively. Why is this? Does it help as you move from a single server to multiple servers? I ...
5
votes
2answers
5k views

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 ...
5
votes
2answers
4k views

Host is missing hostname and/or domain

i use puppet 0.25.4 on ubuntu 10.04,when puppet installed ,i got the infor below : Nov 29 10:30:30 puppet puppetmasterd[4422]: Host is missing hostname and/or domain: pclient.example.com Nov 29 ...
5
votes
2answers
81 views

Definition of Fully qualified domain name

I tried to search to Internet for a definition of a FQDN. Wikipedia says, a FQDN specifies its exact location in the tree hierarchy of the Domain Name System (DNS) I would interpret this, that ...
5
votes
3answers
1k views

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 ...
4
votes
4answers
181 views

What's the point of changing the hostname on my server?

I know that changing my DNS records to point to my IP address is how I get my server accessible, so that a request for myDomain.com points to my IP address. With that said, why does a machine need to ...
4
votes
3answers
2k views

Which host name to put in /etc/hostname?

on my dedicaced server, i host multiple website. Simple question : what do i need to enter in /etc/hostname ? Why choose website1.com instead of website2.com ? What do i need to put in there ? ...
4
votes
1answer
1k views

What is the difference between a plain Amazon ec2 instance and beanstalk?

I am a solo developer and the sites I'm deploying are very small, usually hobby sites and I have a few questions about the Amazon services. Is there a reason for me to use beanstalk or should I just ...
4
votes
2answers
11k views

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 ...
4
votes
5answers
865 views

To which IP should hostname resolve?

Which IP should hostname machine.example.com resolve to in /etc/hosts? To localhost (127.0.0.X), to a local network (10.X.X.X or 192.168.X.X), or to the external server IP visible from outside ...
4
votes
1answer
744 views

Should I change my server hostname?

The hostname on my server is the default that is was when I purchased the dedicated server, but I am wondering if it is possible to change it, and if I should. If I change the hostname, will it stop ...
4
votes
2answers
6k views

How to enumerate network computers from command line?

I am on Windows XP and would like to enumerate the computers that exist on my network from a command line. I would like to enumerate them such that I can use the host names in another command, pslist ...
4
votes
1answer
5k views

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 ...
4
votes
3answers
6k views

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 ...
3
votes
4answers
7k views

How to get the fully qualified name (FQN) on Unix in a bash script?

I have tested hostname on several servers (RedHat, Ubuntu), and hostname -f has proven unreliable, returning sometime the short name only (as described in this question). I can see the fqn in the ...