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. Hostnames are typically the names of physical hosts but in this modern age can be the names of virtual hosts. A DNS address can be the name of an endpoint or service as a host can have multiple IP addresses.
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 Physical 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 Physical Virtual Host
- PSW being a Physical Network Switch
- PRT being a Physical Router
- PLB being a Physical Load Balancer
- PDS being a Physical 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 to the power of 3 so 17576 possibilities