Skip to content

Instantly share code, notes, and snippets.

@maxteufel
Last active December 5, 2017 01:54
Show Gist options
  • Save maxteufel/25c599b428cf204f1bff to your computer and use it in GitHub Desktop.
Save maxteufel/25c599b428cf204f1bff to your computer and use it in GitHub Desktop.

A server naming scheme


Copyright (c) 2014 Max Teufel

Unlimited redistribution and modification of this document is allowed provided that the above copyright notice and this permission notice remains in tact.


Definitions

Note: All parts of the hostname should be lower-case!

Provider code (PC): The provider code is a 3 character long code unique for every provider. It MAY only contain letters (no umlauts etc.) and numbers.

Country code (CC): Equivalent to the ccTLD of the country where the datacenter is located in.

Location code (LC): Equivalent to the UN/LOCODE code without UN/LOCODE's country code.

Service code (SC): This part specifies the purpose of the server, i. e.: web for a web server or mta for a mail transfer agent. Should be between 3 and 10 characters long.

Domain: Your full domain name, i. e.: example.com

Serial: Zero-padded number, based on the expected capacity. This number SHOULD be incremented sequentially and is unique for every PC-CC-LC-SC-domain combination.

Server naming by datacenter/purpose of the server

FQDN

FQDN scheme: ${PC}-${CC}-${LC}-${SC}${serial}.${domain}

FQDN example: abc-uk-lon-web01.example.com

Short hostname

Short hostname scheme: ${PC}-${CC}-${LC}-${SC}${serial}

Short hostname example: abc-uk-lon-web01

TODO

  • Add server naming scheme by datacenter/purpose of the server.
  • Add server naming scheme by IPv4 address of the server.
  • Add server naming scheme by IPv6 address/subnet of the server.
  • Add naming scheme for desktops and laptops.
  • Add naming scheme for mobile devices (smartphones, phablets, tablets).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment