Interview Prep/AWS/VPC and Connectivity

`Unable to resolve host` inside a VPC though internet is available.

IntermediateTroubleshootingVPC and Connectivity
Answer

Likely causes → DNS support disabled, or custom DHCP option set points to unreachable DNS.

Diagnose →

aws ec2 describe-vpc-attribute --vpc-id vpc-0abc --attribute enableDnsSupport
aws ec2 describe-dhcp-options
cat /etc/resolv.conf
dig @169.254.169.253 example.com

Fix →

  1. Enable DNS support and hostnames
  2. Fix DHCP options

Prevent → Keep default DHCP options unless needed.

aws All AWS questions Roadmap: AWS core services

More on VPC and Connectivity