Azure DNS libraries for Java
Overview
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.
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-mgmt-dns</artifactId>
<version>1.22.0</version>
</dependency>
Example
Create a root DNS zone and add a www
CNAME record in an existing resource group.
DnsZone rootDnsZone = azure.dnsZones().define("contoso.com")
.withExistingResourceGroup("myResourceGroup")
.create();
rootDnsZone = rootDnsZone.update()
.withCNameRecordSet("www", "172.30.241.20")
.apply();
Samples
Host and manage your domains with Azure DNS
Explore more sample Java code for Azure DNS you can use in your apps.
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應