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.
Azure SDK for Java
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour