<p>I manage multiple websites that currently have the following DNS configuration:</p>
<pre><code class="lang-auto">example.com - A Record - Production Server IP
test.example.com - A Record - Test Server IP
www.example.com - CNAME - example.com
beta.example.com - CNAME - test.example.com
dev.example.com - CNAME - test.example.com
</code></pre>
<p>Is this an appropriate use of CNAME records? I’ve looked online and have not found a clear answer. Some people claim that CNAME records are bad (they are not, however, clear on why this is) and propose the following setup:</p>
<pre><code class="lang-auto">example.com - A Record - Production Server IP
test.example.com - A Record - Test Server IP
www.example.com - A Record - Production Server IP
beta.example.com - A Record - Test Server IP
dev.example.com - A Record - Test Server IP
</code></pre>
<p>Which one of these is the better approach (and why)?</p>
<p><strong>Note :</strong> The subdomains do not require their own MX records, so that is not an issue here.</p>
<hr>
<p><em>Source : <a href="http://web.archive.org/web/20110809095548/https://serverfault.com/questions/45734/the-coolest-server-names" rel="noopener nofollow ugc">Server Fault</a>.)</em></p>