Azure VPN client not able to resolve private DNC

Amandeep Sadioura 0 Reputation points
2025-04-21T14:28:53.2833333+00:00

I have successfully created AKS and VPN and able to ping private nodes after connecting to VPN via macos Azure VPN client but not able to resolve API endpoint of my private AKS cluster

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,385 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Venkat V 1,800 Reputation points Microsoft External Staff
    2025-04-25T06:00:00.4933333+00:00

    Hi@Amandeep Sadioura ,

    Based on your nslookup result, the DNS resolution is not happening correctly.

    Note: 168.63.129.16 is a special Azure internal DNS IP that is only accessible by Azure VMs. VPN Client users cannot use 168.63.129.16 for DNS resolution.

    To resolve the issue, you may use one of the following methods.

    1. Local hostentry-Easy method
      User's image

    Path of local Hostfile : C:\Windows\System32\drivers\etc

    10.224.0.4 	bda7ddb4-662a-4776-945b-d40289bcfb86.privatelink.eastus.azmk8s.io
    10.224.0.4  demo-aks-aks-rg-98bcca-v140dnbh.hcp.eastus.azmk8s.io(API Server)
    
    

    Hostname.User's image

    1. Azure Private DNS Resolver + Additional VPN Client configurations—Follow the Azure DNS Private Resolver and Configure Azure VPN Client – Microsoft Entra ID authentication – Windows

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.

    I really appreciate your feedback. It’s valuable to us. Please click Accept Answer on this post to assist other community members facing similar issues in finding the correct solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.