Setup openvpn on ubuntu 22 not able to resolve internal conatiner app service

Rahul Arya 0 Reputation points
2024-04-29T16:44:17.6733333+00:00

after connecting vm not able to resolve internal container apps

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,401 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
282 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Silvia Wibowo 3,166 Reputation points Microsoft Employee
    2024-04-30T02:34:15.5933333+00:00

    Hi @Rahul Arya , I understand that you are accessing an Internal Container Apps using VPN (openvpn) and cannot resolve DNS name.

    You need to create a DNS entry so your client (laptop?) can resolve the internal Container Apps domain name. The easiest way is to create an entry in your client's hosts file that resolves the Container Apps environment's default domain to the static IP address of the Container Apps environment.

    If your client is on Azure, you can use Azure Private DNS or your own DNS server.

    More info: DNS for Container Apps.

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.


  2. ChaitanyaNaykodi-MSFT 23,341 Reputation points Microsoft Employee
    2024-05-03T22:12:08.42+00:00

    @Rahul Arya

    Thank you for reaching out.

    I understand that you can connect to the container app from your OpenVPN virtual machine and resolve the DNS, but you’re unable to resolve the domain from your local Mac after connecting to the VPN. Although you can connect to the private IP of the container app’s environment, you need to configure the DNS settings on your VPN server to push to your local system, enabling you to resolve the DNS from there.

    The recommended solution in this scenario will be to set-up a Azure Private DNS resolver to help resolve the Container Apps hostname from the on-prem network. Similar to the architecture described here

    Additional references:

    https://learn.microsoft.com/en-us/azure/architecture/networking/architecture/azure-dns-private-resolver#use-dns-private-resolver

    Hope this helps. Please let me know if you have any additional questions. Thank you!

    0 comments No comments