title: Route53 route to cloudfront
body: <p>I am struggling to route with route53 to a cloudfront distribution</p>
  <p>I have a domain registered with AWS. For this example, let's call it &quot;mydomain.com&quot;</p>
  <p>Steps I have made:</p>
  <ul>
  <li>create and validate certificate in us-east-1 region (registered for *.mydomain.com)</li>
  <li>add certificate arn to cloudfront distribution</li>
  <li>add alternate domain (CNAME): cloudfront.mydomain.com</li>
  <li>configure &quot;cloudfront.mydomain.com&quot; as type &quot;A&quot; record in route53 and make it point to the cloudfront distribution</li>
  </ul>
  <p>I made all the steps then to test if it was succesffull I do following</p>
  <pre><code>dig cloudfront.mydomain.com
  </code></pre>
  <p>However I do not get the cloudfront distribution entry? What am I doing wrong?</p>
  <p>These steps are as in AWS documentation and as other users described in how to setup custom domain for cloudfront</p>
  <p>Any ideeas?</p>
  <p>I get following back from dig command</p>
  <pre><code>; &lt;&lt;&gt;&gt; DiG 9.10.6 &lt;&lt;&gt;&gt; cloudfront.mydomain.com
  ;; global options: +cmd
  ;; Got answer:
  ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 55826
  ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
  
  ;; OPT PSEUDOSECTION:
  ; EDNS: version: 0, flags:; udp: 4096
  ;; QUESTION SECTION:
  ;cloudfront.mydomain.com.        IN      A
  
  ;; ANSWER SECTION:
  cloudfront.mydomain.com. 51 IN   A       54.192.233.53
  cloudfront.mydomain.com. 51 IN   A       54.192.233.71
  cloudfront.mydomain.com. 51 IN   A       54.192.233.83
  cloudfront.mydomain.com. 51 IN   A       54.192.233.43
  
  ;; Query time: 10 msec
  ;; SERVER: 192.168.100.1#53(192.168.100.1)
  ;; WHEN: Tue Oct 13 10:00:21 EEST 2020
  ;; MSG SIZE  rcvd: 123
  </code></pre>
  <p>Shouldn't I have been able to see the cloudfront distribution domain in the dig response?</p>
  <p>I see the IP's above are for cloudfront, but I expected to also see the domain of the distribution, since that's what's mentioned in AWS documentation</p>