title: Unable to map custom domain to API Gateway (from Godaddy)
body: <p>I'm trying to set up a custom domain (say, <code>myapi.com</code>) for my API Gateway but am running into problems. The domain is currently registered on GoDaddy. So far, I've followed <a href="https://medium.com/@maciejtreder/custom-domain-in-aws-api-gateway-a2b7feaf9c74" rel="nofollow noreferrer">this</a> tutorial and done the following:</p>
  
  <ol>
  <li>Obtained a certificate for <code>myapi.com</code> and <code>*.myapi.com</code> from the AWS Certificate Manager. </li>
  <li>Mapped the domain <code>myapi.com</code> (not <code>*.myapi.com</code> as I don't need it yet) to an API in the API Gateway.</li>
  <li>Added a CNAME entry for the resulting "target domain name" in GoDaddy.</li>
  </ol>
  
  <p>Here are the screenshots:</p>
  
  <p><a href="https://i.stack.imgur.com/D1zpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1zpd.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/vN9cM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vN9cM.png" alt="enter image description here"></a></p>
  
  <p>Now here's the problem: When I do <code>ping myapi.com</code> I get: <code>No address associated with hostname</code>. I'm not sure what's causing this, so would really appreciate some help. And while we're at it, are there any other steps I need to perform before this works as expected?</p>