title: What are the best practice for domain names (dev, staging, production)?
body: <p>With the rise of containers, Kuberenetes, 12 Factor etc, it has become easier to replicate an identical environment across dev, staging and production. However, what there appears to be no common standard to domain name conventions.</p>
  
  <p>As far as I can see it, there are two ways of doing it:</p>
  
  <ul>
  <li>Use subdomains:
  
  <ul>
  <li><code>*.dev.foobar.tld</code></li>
  <li><code>*.staging.foobar.tld</code></li>
  <li><code>*.foobar.tld</code></li>
  </ul></li>
  <li>Use separate domains:
  
  <ul>
  <li><code>*.foobar-dev.tld</code></li>
  <li><code>*.foobar-staging.tld</code></li>
  <li><code>*.foobar.tld</code></li>
  </ul></li>
  </ul>
  
  <p>I can see up and downs with both approaches, but I'm curious what the common practise is.</p>
  
  <p>As a side-note, Cloudflare will not issue you certificates for sub-sub domains (e.g. <code>*.stage.foobar.tld</code>).</p>