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.
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java