This is the official .NET SDK for ANS SafeDNS
You should refer to the Getting Started section of the API documentation before proceeding below
To get started, we'll first instantiate an instance of IANSSafeDNSClient
:
IANSSafeDNSClient client = new ANSSafeDNSClient(new ClientConnection("myapikey"));
Next, we'll obtain an instance of IZoneOperations to perform operations on DNS zones:
var zoneOps = client.ZoneOperations();
Finally, we'll retrieve all zones using the instance of IZoneOperations
:
IList<Zone> zones = await zoneOps.GetZonesAsync();
Several operations are available via IANSSafeDNSClient
:
ZoneOperations()
- returns an instance ofIZoneOperations
for performing zone operationsZoneRecordOperations()
- returns an instance ofIZoneRecordOperations
for performing zone record operationsZoneNoteOperations()
- returns an instance ofIZoneNoteOperations
for performing zone note operationsTemplateOperations()
- returns an instance ofITemplateOperations
for performing template operationsTemplateRecordOperations()
- returns an instance ofITemplateRecordOperations
for performing template record operations