Skip to content

ans-group/sdk-dotnet-safedns

Repository files navigation

sdk-dotnet-safedns

This is the official .NET SDK for ANS SafeDNS

You should refer to the Getting Started section of the API documentation before proceeding below

Basic usage

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();

Operations

Several operations are available via IANSSafeDNSClient:

  • ZoneOperations() - returns an instance of IZoneOperations for performing zone operations
  • ZoneRecordOperations() - returns an instance of IZoneRecordOperations for performing zone record operations
  • ZoneNoteOperations() - returns an instance of IZoneNoteOperations for performing zone note operations
  • TemplateOperations() - returns an instance of ITemplateOperations for performing template operations
  • TemplateRecordOperations() - returns an instance of ITemplateRecordOperations for performing template record operations

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages