To begin, name each host (via the appropriate method for your operating system) and set its DNS A record to a hostname of the server:
p-est-w-web01.domain.com. A 188.8.131.52
This name should be used for physical labeling of the equipment and will be mostly useful for operations engineers, remote hands and record keeping. It’s also what should be resolved by the reverse DNS PTR record.
See also Server Host Naming Conventions
Then assign one or more DNS CNAME records to cover practical machine details, such as location, environment, work department, purpose etc. This is all information that is easily reflected in your CMDB.
The CNAME documents should be known and used by developers for interconnection services. If these names are kept consistent, the mental effort required to remember your hostname will be reduced when you need it.
Start with your registered domain and divide into a correct sub-domain each piece of additional information. DNS is hierarchical by design, which will give us some advantages later on.
<wip>.domain.com. CNAME p-est-w-web01.domain.com.
After your domain name, add a subdomain referencing the geography of the host. Use the 5-character United Nations Code for Trade and Transport Locations (UN/LOCODE) value based on the address of the host’s data center. It covers more specific locations than something like the IATA airport codes, and is still a well defined standard.
Add a subdomain that refers to the location of the host after your domain name. Use the UN Trade and Transport Code (UN / LOCODE) 5-Character value based on host data center addresses. It covers more specific sites than IATA codes and continues to be a well-defined standard.
<wip>.est.domain.com. CNAME p-est-w-web01.domain.com.
Next up, specify the environment that the host is a part of:
dev – Development tst – Testing stg – Staging prd – Production
These should be based on whatever process model you follow for release management…you may have more or less designations as well as environments like sandbox, training, etc..
<wip>.prd.est.domain.com. CNAME p-est-w-web01.domain.com.
Last up, specify the basic category of the host’s function and append a serial number/sequence:
For the serial number, use zero-padded numbers based on your expected capacity. Plan for expansion, but usually two digits will be more than sufficient.
web01.est.nyc.domain.com. CNAME p-est-w-web01.domain.com.
Increment the serial numbers sequentially and segment them based on the type of server in a particular data center, rather than a globally-unique index. That means you may have a web01 in multiple data centers.
Beyond the standardized structure, you may want additional CNAME records for convenience words like webmail, cmdb, puppet, etc..
www.domain.com. CNAME p-est-w-web01.domain.com.