Hostname Naming Convention
A hostname can have a naming convention that is useful and predictable. I am the author of the Product Naming Conventions on Wikipedia so I take it maybe too serious.
One pattern I worked on was for Tecnoera in Chile who was using Egyptian historical names origionally
So as an IXP they needed to note the ownership, the location and the purpose so we have
- Datacenter on Londres in Vina Del Mar
- The 15th VPN
Later in the process we added a geographical region as we had locations in various countries
- Chilean Region 5 is the common usage for the Valparaiso region (not to be confused with the city by the same name)
As adoption of this name also found its way into other customers and providers it became an accidental standard in Chile
Here we have an IBM owned system in Chicago that is a Production Virtual Host with Serial number 002
Noting the owner can be important. It can be the owner of the hardware or the company or group using it. The idea is that users should expect the prefix for a naming convention.
IATA airport code for industry standard, use another if desired, assume use of a system of record for exact location discovery
- hosts prefix enables fast visual identification even by newb
- Pick a standard and stick to it.
We can look up more details in the system of record if needed like the exact rack location.
- PVH being a Production Virtual Host
- PVM being a Production Virtual Machine
- PCN being a Production Container
- SVH being a Security Virtual Host
- DVH being a Development Virtual Host
- QVH being a QA Virtual Host
- PRT being a Production Router
- PLB being a Production Load Balancy
- PDB being a Production Database
- PDS being a Production Data Store
- * (Use FS for file store or ST for storage, just keep it simple)
000-999 Offers almost 1000 hosts and is speakable
G6y is a 62 bit encoded value that uses the 26 alphabet upper and lower case and the numeral digits from 0-9
G6y == 6 58 50
- Don't use https://en.wikipedia.org/wiki/Base64 as the + and / are not valid in DNS
- Strip out the confusing chars like 0, O, o, I, l, 1, for 23456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ
- Just alphabet chars gives 26 variations x 3 so 17576 possiblities