CloudFlare.Dns
1.3.5
dotnet add package CloudFlare.Dns --version 1.3.5
NuGet\Install-Package CloudFlare.Dns -Version 1.3.5
<PackageReference Include="CloudFlare.Dns" Version="1.3.5" />
paket add CloudFlare.Dns --version 1.3.5
#r "nuget: CloudFlare.Dns, 1.3.5"
// Install CloudFlare.Dns as a Cake Addin #addin nuget:?package=CloudFlare.Dns&version=1.3.5 // Install CloudFlare.Dns as a Cake Tool #tool nuget:?package=CloudFlare.Dns&version=1.3.5
Welcome to CloudFlare.Dns
Developed is a C#/.NET library that enables interaction with Cloudflare APIs, allowing for the management of DNS records within the Cloudflare platform. This project proves valuable for the administration of DNS records in various contexts and applications.
Compatibility
This library is developed in .NET Standard 2.0 and is compatible with all .NET, .NET Core and .NET Framework implementations, it can also be used in Console projects, Web API, Class Library and even with Blazor WASM.
.NET implementation | Version support |
---|---|
.NET and .NET Core | 3.0, 3.1, 5.0, 6.0, 7.0 |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Installation
To install you must go to Nuget package manager and search for "CloudFlare.Dns" and then install.
NuGet Package
PM> Install-Package CloudFlare.Dns
Usage
// Variables
string xAuthKey = "UltraPrivateSecretKeyCloudFlare"; // Global API Key
string xAuthEmail = "lalolanda@gmail.com"; // Domain owner email in cloudflare
string zoneIdentifier = "Domain identifier"; // Domain identifier
// Client
CloudFlareDnsClient cloudFlareDnsClient = new CloudFlareDnsClient(xAuthKey, xAuthEmail, zoneIdentifier);
// Create record ipv4; with proxied with cloudflare and TTL in 60 seg / 1 min
Record record01 = await cloudFlareDnsClient.Record.Create("test-01.deployrise.com", "8.8.8.8", false, RecordType.A, 60, comment: "This commentary it's optional");
// Create record cname; without proxied and ttl in 120 seg / 2 min
Record record02 = await cloudFlareDnsClient.Record.Create("test-02.deployrise.com", "google.com", false, RecordType.CNAME, 120, comment: "This commentary it's optional");
When creating a subdomain, we can either write the complete address or just the subdomain. For example, we can use store.domain.com or just store. Both cases are completely valid
// We create a subdomain by specifying the complete address
Record record = await cloudFlareDnsClient.Record.Create("store.deployrise.com", "8.8.8.8", false, RecordType.A, 60);
// We create a subdomain by specifying the short address
Record record = await cloudFlareDnsClient.Record.Create("store", "8.8.8.8", false, RecordType.A, 60);
Wiki
If you like the project and want to understand how it works in depth, you can visit the documentation in the wiki
Implemented functionality
Get All | Get One | Post | Put | Patch | Delete | |
---|---|---|---|---|---|---|
DNS Records for a Zone | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.