Getting Started with Dns - Manage Dns - in Java
Azure DNS sample for managing DNS zones. - Create a root DNS zone (contoso.com) - Create a web application - Add a CNAME record (www) to root DNS zone and bind it to web application host name - Creates a virtual machine with public IP - Add a A record (employees) to root DNS zone that points to virtual machine public IPV4 address - Creates a child DNS zone (partners.contoso.com) - Creates a virtual machine with public IP - Add a A record (partners) to child DNS zone that points to virtual machine public IPV4 address - Delegate from root domain to child domain by adding NS records - Remove A record from the root DNS zone - Delete the child DNS zone
Running this Sample
To run this sample:
Set the environment variable
AZURE_AUTH_LOCATION with the full path for an auth file. See how to create an auth file.
git clone https://github.com/Azure-Samples/dns-java-host-and-manage-your-domains.git cd dns-java-host-and-manage-your-domains mvn clean compile exec:java
If you don't have a Microsoft Azure subscription you can get a FREE trial account here