<p>I am new to Kubernetes. I am using Kops to deploy my Kubernetes application on AWS. I have already registered my domain on AWS and also created a hosted zone and attached it to my default VPC.</p>

<p>Creating my Kubernetes cluster through kops succeeds. However, when I try to validate my cluster using <code>kops validate cluster</code>, it fails with the following error:</p>

<blockquote>
  <p>unable to resolve Kubernetes cluster API URL dns: lookup api.ucla.dt-api-k8s.com on 149.142.35.46:53: no such host</p>
</blockquote>

<p>I have tried debugging this error but failed. Can you please help me out? I am very frustrated now.</p>

<p>From what you describe, you created a Private Hosted Zone in Route 53. The validation is probably failing because Kops is trying to access the cluster API from your machine, which is outside the VPC, but private hosted zones only respond to requests coming from within the VPC. Specifically, the hostname <code>api.ucla.dt-api-k8s.com</code> is where the Kubernetes API lives, and is the means by which you can communicate and issue commands to the cluster from your computer. Private Hosted Zones wouldn't allow you to access this API from the outside world (your computer).</p>

<p>A way to resolve this is to make your hosted zone public. Kops will automatically create a VPC for you (unless configured otherwise), but you can still access the API from your computer. </p>
