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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente las Cuestiones de GitHub como mecanismo de retroalimentación para el contenido y lo sustituiremos por un nuevo sistema de retroalimentación. Para más información, consulta:Enviar y ver comentarios de