Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share

locked by HopelessN00b Jan 22 at 7:13

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as not a real question by mdpc, Ward, Khaled, John Gardeniers, Sven Dec 31 '12 at 11:38

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

2  
All of your hosts are called www ? –  Iain 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 Answer 1

up vote 3 down vote accepted

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.

share
    
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 1 '13 at 10:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.