sql1.contoso.internal without anyone memorising 10.10.2.4). You still buy the domain name from a registrar; Azure DNS only answers queries for it.Public DNS zone
You, the admin: move contoso.com's DNS to Azure
- DNS zones › + Create, name contoso.com.
- Open the zone; the Overview shows four name servers (ns1-0x.azure-dns.com…). At your registrar, replace the existing name servers with these four (delegation).
- Add records: + Record set.
wwwtype CNAME → contoso-web.azurewebsites.net. For the bare domain use type A with Alias record set = Yes pointing at the App Service or public IP resource, so it follows the IP if it changes (a plain CNAME is not allowed at the apex).
Record types: A, AAAA, CNAME, MX, TXT, NS, SRV, PTR, CAA. Alias records can point at a public IP, Traffic Manager or Front Door resource and never go stale.
Private DNS zone
- Private DNS zones › + Create, name contoso.internal.
- Zone › Virtual network links › + Add: pick VNet1, tick Enable auto registration so every VM in VNet1 gets an A record automatically. Link VNet2 too, without auto-registration (only one VNet per zone may auto-register). Links work across subscriptions.
- Add manual records for things that are not VMs (an internal load balancer front end).
What servers use to resolve
VNet › DNS servers: Default (Azure-provided) resolves other VMs in the VNet, linked private zones and the internet. Custom points VMs at your own servers (a domain controller at 10.10.2.10). VMs pick up a change only after a restart or DHCP renew. If you use custom servers they must forward unknown names to Azure's resolver at 168.63.129.16 or private zones stop working. Azure DNS Private Resolver is the managed way to forward between the office DNS and Azure private zones without running a DNS VM.