<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aaron Rosenberg</title>
    <description>The latest articles on DEV Community by Aaron Rosenberg (@agrberg).</description>
    <link>https://dev.to/agrberg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1483477%2F4b76a742-c986-4d58-8bca-6db89717cffe.jpg</url>
      <title>DEV Community: Aaron Rosenberg</title>
      <link>https://dev.to/agrberg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agrberg"/>
    <language>en</language>
    <item>
      <title>DNS and Other Taxes</title>
      <dc:creator>Aaron Rosenberg</dc:creator>
      <pubDate>Fri, 10 May 2024 21:21:52 +0000</pubDate>
      <link>https://dev.to/agrberg/dns-and-other-taxes-4eod</link>
      <guid>https://dev.to/agrberg/dns-and-other-taxes-4eod</guid>
      <description>&lt;h1&gt;
  
  
  Tl;dr
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3tb20jq5lphuqiwphmg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft3tb20jq5lphuqiwphmg.png" alt="This is probably what you're looking for" width="800" height="231"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup Your Domain URLs
&lt;/h2&gt;

&lt;p&gt;The most common web address setup has the &lt;strong&gt;apex&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;www&lt;/code&gt; subdomain&lt;/strong&gt; go to the same website (i.e. respectively &lt;code&gt;https://example.com&lt;/code&gt; and &lt;code&gt;https://www.example.com&lt;/code&gt; both work). Two types of DNS records are used to connect the apex to the site's source/hosting and to point the subdomain at the apex.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Most cloud hosts provide a unique subdomain like &lt;code&gt;krabby-kitten-1234.the-cloud.com&lt;/code&gt;. Create an &lt;strong&gt;ALIAS Record&lt;/strong&gt; with host &lt;code&gt;@&lt;/code&gt; and value of the cloud subdomain.

&lt;ul&gt;
&lt;li&gt;If you have an IP address instead, create an &lt;strong&gt;A Record&lt;/strong&gt; with it &lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiwm11hxm1ivrjwhby592.png" alt="If you have an IP instead" width="800" height="231"&gt;
&lt;/li&gt;
&lt;li&gt;Some DNS Providers (e.g. Cloudflare) use CNAME flattening to do this&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Create a &lt;strong&gt;CNAME Record&lt;/strong&gt; with host &lt;code&gt;www&lt;/code&gt; and and apex domain, &lt;code&gt;example.com&lt;/code&gt;, as the value.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Finally, register the apex and subdomains with your cloud provider. This is typically a part of generating SSL certificates.&lt;/p&gt;

&lt;p&gt;Hopefully that’s all you need! The rest of this post serves as an appendix if I get amnesia or if this is the first time you’re encountering these terms.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why?
&lt;/h3&gt;

&lt;p&gt;I call infrequent intricate tasks with painful penalties for minuscule mistakes “doing your taxes.” They’re bad enough without unambiguous concise information being so difficult to find. As to "be the change you wish to see in the world," this is the Good Enough™ primer for the next time.&lt;/p&gt;

&lt;h1&gt;
  
  
  Appendix
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Parts of a URL
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko37feas9b1qtivffnfp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fko37feas9b1qtivffnfp.png" alt="Image description" width="618" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Record Types
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A Record

&lt;ul&gt;
&lt;li&gt;This connects either an &lt;strong&gt;apex&lt;/strong&gt; or &lt;strong&gt;subdomain&lt;/strong&gt; to a static IP address.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;CNAME Record

&lt;ul&gt;
&lt;li&gt;This connects a &lt;strong&gt;subdomain&lt;/strong&gt; to another URL such as &lt;code&gt;krabby-kitten-1234.the-cloud.com&lt;/code&gt;. It cannot be used for the apex domain because … reasons.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;ALIAS Record

&lt;ul&gt;
&lt;li&gt;A CNAME that &lt;em&gt;can&lt;/em&gt; be used for the &lt;strong&gt;apex&lt;/strong&gt; or &lt;strong&gt;subdomains&lt;/strong&gt; 😑&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  DNSWTF
&lt;/h2&gt;

&lt;p&gt;Ultimately a URL needs to be turned into an IP address and it’s the Domain Name System (DNS) that handles this. When you buy a domain from a registrar, you create DNS records to tell other computers what IP address they can connect to in order to access the root and subdomains. When you specify another URL like with ALIAS and CNAME records, that address DNS records are looked up and so on until an IP address is found.&lt;/p&gt;

</description>
      <category>dns</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
