title: EC2 could not resolve private DNS host name
body: <p>I am new to Amazon Web Service (AWS)</p>
  <p>I just created a VPC and and a subnet, which is inside it.
  However, I could not resolve any hostnames in this subnet (when I stay in any hosts in this subnet)</p>
  <pre><code>[ec2-user@ip-192-168-1-86 ~]$ nslookup
  &gt; ip-192-168-1-86.ec2.internal
  Server:     192.168.1.2
  Address:    192.168.1.2#53
  
  ** server can't find ip-192-168-1-86.ec2.internal: NXDOMAIN
  </code></pre>
  <p>I have double check that DNS resolution is enabled for my VPC
  and private DNS hostname is correct
  <a href="https://i.stack.imgur.com/REvBu.png" rel="nofollow noreferrer">enter image description here</a></p>