OCI Virtual Cloud Network: how to to Resolve Private IP Addresses from Public Subnet
I'm following best practices but After trying multiple solutions online, I still can't figure this out... After trying multiple solutions online, I still can't figure this out... I am currently working with issues with DNS resolution for private IP addresses from a public subnet in my Oracle Cloud Infrastructure (OCI) setup. I have a Virtual Cloud Network (VCN) with one public subnet and one private subnet. The private subnet contains several instances, and I am trying to resolve their private IP addresses from an instance in the public subnet. However, I am getting `Host not found` errors when trying to ping or SSH into these private instances using their private IP addresses. I've confirmed that the security lists associated with the VCN allow ingress and egress traffic appropriately, and I am using the Oracle-provided DNS resolver at `169.254.169.254`. Hereβs how Iβve configured my environment: - Public Subnet CIDR: `10.0.0.0/24` - Private Subnet CIDR: `10.0.1.0/24` - Default Route Table in Public Subnet pointing to Internet Gateway - Default Route Table in Private Subnet pointing to NAT Gateway When I try to ping a private instance with the following command, I receive: ```bash ping 10.0.1.10 ``` This results in `ping: 10.0.1.10: Host not found`. I've also tried updating the DNS settings in my `/etc/resolv.conf`, but it doesn't seem to have any effect. My current `/etc/resolv.conf` looks like this: ```bash # Generated by resolvconf nameserver 169.254.169.254 ``` I verified that the private instance is up and running and that I can SSH into it from within the private subnet using its private IP address. However, the public instance want to resolve this address. I am unsure if this is a configuration scenario with routing or DNS. Any guidance on this would be greatly appreciated! For context: I'm using Bash on Ubuntu. Am I missing something obvious? I'm working on a application that needs to handle this. This is part of a larger CLI tool I'm building. What are your experiences with this? The stack includes Bash and several other technologies. Is there a better approach?