Hello Gafoor, Abdul
Greetings!
- If you are using a custom DNS, you need to configure a forwarder pointing to the Azure DNS IP on the custom DNS server machine.
- Additionally, if the custom DNS is hosted in a different VNET, you need to add the custom DNS virtual network in the private DNS zone.
- If AKS is in a different VNET, you need to link this VNET in the private DNS zone as well.
- If you are trying to connect from on-premises, you need to use a VPN. For connections inside Azure, you need a private DNS resolver.
- Additionally, you must configure a conditional forwarder pointing to the private DNS resolver's inbound IP in your local machine's DNS server.
Kindly check the below documents for more understanding:
Doc 2: https://learn.microsoft.com/en-us/azure/dns/dns-private-resolver-overview
Doc 3: https://learn.microsoft.com/en-us/azure/private-link/create-private-endpoint-portal?tabs=dynamic-ip
Hope this helps!
Please let me know if you have any questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.