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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: DNS naming conventions for cloud environments

9 点作者 bndw超过 5 年前
- What sort of naming conventions do you use for your cloud environments?<p>- How do names correlate to environment (dev, staging, prod, etc), region (us-west-2, etc) and so on?<p>- How do you scope non-prod environment sub domains to reduce collision with business&#x2F;product subdomains (e.g. marketing might want to use stage.example.com)?<p>For example:<p>- staging.example.com points to a load balancer for staging workloads<p>- the request is routed to us-west-2.staging.example.com via a geolocation routing policy (closest region to the user)<p>- us-west-2.staging.example.com load balancer proxies the request to the backend workload(s)

1 comment

rorychatt超过 5 年前
In the organisations I have worked, we have normally done something like this:<p>- &lt;environment&gt;-&lt;component&gt;-&lt;application&gt;.&lt;application-portfolio&#x2F;team&gt;-&lt;tenancy&gt;.&lt;hosting-environment&gt;.&lt;business_name&gt;.com<p>This allowed us to delegate hosted zones to the application teams to self-manage their dns.<p>Example, the hosted zone:<p>- marketing-nonprod.aws.example.com<p>Would appear as a hosted zone in the Marketing, Non-Production aws account. Note that we track the &quot;Tenancy Environment&quot;, i.e. whether it&#x27;s a prod&#x2F;non-prod&#x2F;labs. This will map to multiple application environments, e.g. UAT&#x2F;INT&#x2F;etc will be under non-prod.<p>Then an application like:<p>- prod-web-app.marketing-prod.aws.example.com<p>could have a cname to:<p>- app.example.com<p>Which we would handle as a one-off service request to the central DNS management team (often dealing with things like Akemai at that stage).<p>If the application stack required multi-regionality, we could added a regional identifier into the application name.<p>My approach is overkill in many orgs. Many of these issues are made simpler through mechanisms like service discovery.