TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A Proper Server Naming Scheme

4 点作者 nwilkens超过 11 年前

1 comment

nasalgoat超过 11 年前
The unique name for the physical machine&#x27;s A record and everything else as a CNAME is overly complex.<p>Just having the server type and location should be enough to maintain thousands of servers without losing one. Most machines will have other unique identifiers in the hardware you can use for inventory that is not editable, so are better suited for such uses.<p>I also disagreed with the zero padding as it limits the total number of servers per type to 100, but that&#x27;s a personal preference.<p>If people are concerned about running multiple services on one box, and you don&#x27;t want to run the same service across all boxes of that type, you could use IP aliases referring to the different type and host it on the machine. If the machine&#x27;s role changes, change the hostname and DNS.<p>There are a couple of instances I&#x27;ve encountered where CNAMEs don&#x27;t work whereas A records do, but I can&#x27;t think of where that happened to me so I can&#x27;t back up that argument.