An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
The correct setup depends on whether the DNS records must be publicly accessible or only resolvable inside Azure virtual networks.
For a public domain:
- In the Azure portal, search for DNS zones and select Create.
- Enter the domain you own.
- Open the new zone and select Record sets > Add.
- Create the required records, such as:
- A - maps a hostname to an IPv4 address.
- AAAA - maps a hostname to an IPv6 address.
- CNAME - maps one hostname to another hostname.
- MX - identifies the domain’s mail server.
- TXT - commonly used for domain verification and email policies.
- Copy the four Azure name servers shown on the zone’s Overview page.
- At your domain registrar, replace the existing name-server entries with the Azure name servers. The domain must be delegated before public DNS queries will normally reach the Azure DNS zone.
For names that should resolve only inside Azure, create a Private DNS zone, add the required records, and create a virtual network link between the zone and each VNet that needs to resolve it. Autoregistration can optionally create and maintain A records for Azure VMs in the linked VNet.
If you’re using custom DNS servers or need name resolution between Azure and an on-premises network, the design is different and may require conditional forwarding or Azure DNS Private Resolver:
Please confirm whether you need a public Internet domain, private VNet-only DNS, or hybrid Azure/on-premises DNS, along with the record type and target you’re trying to configure.
References:
Create a public DNS zone and record
Delegate a domain to Azure DNS
Manage DNS records in the Azure portal
Create an Azure Private DNS zone
Azure DNS Private Resolver overview
Help make this community better for everyone: If this answer helped or resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution. Thank you.