How does Azure DNS work for public and private zones?

BeginnerConceptNetworking
Answer

Azure DNS public zones host your internet domain records on Microsoft's anycast name servers; you delegate the domain at your registrar to the four NS records Azure gives you. Alias records can point at a public IP, Front Door, or Traffic Manager profile and stay correct when the target changes.

Private DNS zones resolve names only inside VNets that are linked to the zone, optionally with auto-registration of VM records. They are the backbone of Private Endpoint name resolution.

az network dns record-set a add-record -g rg-dns -z devopsshack.com -n app -a 20.1.2.3
az network private-dns link vnet create -g rg-dns -z privatelink.azurecr.io \
  -n link-spoke -v <vnetId> -e false
Azure All Azure questions Roadmap: Azure core services

More on Networking