Azure DNS libraries for Java


Provide domain name resolution and manage your DNS records using the same credentials, APIs, tools, and billing as your other Azure services with Azure DNS.

To get started with Azure DNS, see Get started with Azure DNS using the Azure CLI 2.0.

Management API

Create DNS zones and add records to zones with the management API.

Add a dependency to your Maven pom.xml file to use the client library in your project.



Create a root DNS zone and add a www CNAME record in an existing resource group.

DnsZone rootDnsZone = azure.dnsZones().define("")
rootDnsZone = rootDnsZone.update()
        .withCNameRecordSet("www", "")


Host and manage your domains with Azure DNS

Explore more sample Java code for Azure DNS you can use in your apps.