<p>I want to set up <code>Kubernetes Cluster</code> on AWS using <code>kops</code>.</p>

<p>I have domain <code>tutorialmate.com</code>. I have added Nameserver provided by <code>Route53</code>.</p>

<p>Used below command to create cluseter:</p>

<p><code>kops create cluster --name=tutorialmate.com --state=s3://kop-state-009 --zones=eu-west-1a --node-count=2 --node-size=t2.micro --dns-zone=tutorialmate.com</code></p>

<p>Updated Cluster :
<code>kops update cluster tutorialmate.com --yes --state=s3://kop-state-009</code></p>

<p>But when trying to get nodes : <code>kubectl get nodes</code></p>

<p>Getting below error :</p>

<blockquote>
  <p><strong>Unable to connect to the server: dial tcp: lookup api.tutorialmate.com on 127.0.1.1:53: no such host</strong></p>
</blockquote>

<p>I should get details of nodes. I can see <strong>3 EC2 instance</strong> are running under <code>eu-west-1a</code>. But getting the error as mentioned.</p>

<p>probaly your local system dns can't resolve this name, so you put in hosts manualy this entry:
Eg. on Windows
C:\Windows\System32\drivers\etc\hosts</p>
<p>#Ip of AzureKubernetes service <br />
172.20.xx.xx   xxx-dns-xxxxxxxxx.privatelink.xxxx.azmk8s.io</p>
