How does DNS work with Private Endpoints?
AdvancedConceptNetworking
Answer
When a Private Endpoint is created, the public name gets a CNAME into a privatelink zone: kvshop.vault.azure.net → kvshop.privatelink.vaultcore.azure.net. Clients must resolve the privatelink name to the private IP, which needs a Private DNS zone (privatelink.vaultcore.azure.net) linked to the VNet with an A record (created automatically by a DNS zone group on the endpoint).
Clients outside the VNet (on-prem, other VNets) need to use Azure DNS through the DNS Private Resolver inbound endpoint or a forwarder to 168.63.129.16. Symptom of getting it wrong: nslookup returns the public IP and the request is blocked by the firewall.
nslookup kvshop.vault.azure.net # must return 10.x.x.x from inside the VNet
More on Networking
What is a VNet and how does it compare to an AWS VPC?BeginnerHow many IP addresses does Azure reserve in each subnet?BeginnerWhat is a Network Security Group and how are its rules evaluated?BeginnerIf an NSG is on both the subnet and the NIC, how is traffic evaluated?AdvancedWhat are service tags and why use them in NSG rules?BeginnerWhat is an Application Security Group (ASG)?Intermediate