A good hostname convention for few servers with many different services?

Solution 1:

Since you have more than one service per server, I would suggest giving your machines some hostname based off whatever theme you like, then using 'service names'.

For example, host bart might have service names www1, imap1 and ftp1.

Add those service names to DNS and then (depending on your preferences and desire for complexity) either:

  • Create CNAMEs in DNS pointing the service names back to the appropriate hostname
  • Create A records for additional IP addresses and assign those IP addresses to your hosts

Now, make sure you reference services on that machine using the service name (www1), not the hostname.

Solution 2:

here I found a good naming convention:

http://virtualizationreview.com/blogs/virtual-insider/2011/10/how-to-design-an-effective-naming-convention.aspx