DNS Resolution Options¶
DNS Resolution in VPC¶
- enableDnsSupport (= [[DNS Resolution Setting]])
- Default True
- Helps decide if DNS resolution is supported for the VPC
- if True, queries the [[AWS DNS server]] at 169.254.169.253
- enableDnsHostname (= [[DNS hostname setting]])
- False by default for newly created VPC, true by default for default VPC
- Won't do anything unless enable DnsSupport=True
- If True, assign [[public hostname]] to AWS EC2 instance if it has a public IP
- If you use custom [[DNS domain name]]s in a [[private zone]] in AWS Route 53, you must set both these attributes to true
If we enable it, we can refresh our AWS EC2 instance list and see that there will be [[Public DNS hostname]]s associated with instances:
We can go to AWS Route 53 and create a [[private zone]]:
Then we can create [[record set]]s like these:
Now we'll have a demo.foobar.internal
hostname that will resolve in our VPC.