`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 →
- Enable DNS support and hostnames
- Fix DHCP options
Prevent → Keep default DHCP options unless needed.
More on VPC and Connectivity
`ssh: connect to host 3.250.1.1 port 22: Connection timed out`. Walk the checks.Beginner`ssh: connect to host ... port 22: Connection refused`. How is it different from a timeout?Beginner`Permission denied (publickey)` on a new EC2 instance.IntermediatePrivate instances cannot reach the internet; `curl: (28) Connection timed out after 10000 milliseconds`.IntermediateNAT gateway shows `ErrorPortAllocation` in CloudWatch and connections drop.IntermediateVPC peering is `active` but ping fails.Intermediate