-2

Is there a canonical way (no pun intended) to describe the purpose of a specific machine?

I have to administer several hosts all with the same hostname ("www"). On the shell prompt i can not distinguish, which machine i am currently working on. I'd like to have a textfile eg. /etc/purpose in which i can put the description of the machine. Of course I could implement this quite easily, but would rather use a standardized solution. By the way, I am currently running ubuntu from 10.04 to 12.04.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
  • 2
    All of your hosts are called www ? – user9517 Dec 30 '12 at 14:08
  • 2
    `www`, `ftp`, and others are Well Known hostnames. They should *not* be the actual name of the server. The server should be named something reasonable for your normal naming scheme (eg `www01` or server01, whatever); then the well known name should be an alias (DNS CNAME) to the server responsible for those services. Also, having the server display the whole FQDN instead of just it's PQDN helps. – Chris S Dec 30 '12 at 14:51
  • there's no reason _at all_ to name any one machine 'www'. let alone several. – Javier Dec 30 '12 at 19:15

1 Answers1

3

It doesn't seem like a good concept to me to give all of your hosts the same hostname as the idea behind a hostname is to be able to normally uniquely identify the host you're working on. So in my opinion the canonical way would be to rename your hosts.

If you, for what reason ever, can't do this or are not willing to do this the approach with the textfile could be a solution for you, too. Maybe you display the content of the file also as part of motd so you know where you are when you connect to a server.

Simon Strasser
  • 227
  • 1
  • 8
  • Thank you for the discussion. As you stated I have not the full control over all the servers since they belong to different customers. Even if my question is not regarded useful I appreciate your answer and give motd a try. – Andreas Schosser Jan 01 '13 at 10:08