page_type | languages | products | extensions | ||||||
---|---|---|---|---|---|---|---|---|---|
sample |
|
|
|
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
To run this sample:
Set the environment variable CLIENT_ID
,CLIENT_SECRET
,TENANT_ID
,SUBSCRIPTION_ID
with the full path for an auth file. See how to create an auth file.
git clone https://github.com/Azure-Samples/dns-dotnet-host-and-manage-your-domains.git
cd dns-dotnet-host-and-manage-your-domains
dotnet build
bin\Debug\net452\ManageDns.exe
Azure Management Libraries for C# Azure .Net Developer Center If you don't have a Microsoft Azure subscription you can get a FREE trial account here
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.