CodeLogic.NetUtils
3.2.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CodeLogic.NetUtils --version 3.2.7
NuGet\Install-Package CodeLogic.NetUtils -Version 3.2.7
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeLogic.NetUtils" Version="3.2.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeLogic.NetUtils" Version="3.2.7" />
<PackageReference Include="CodeLogic.NetUtils" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeLogic.NetUtils --version 3.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeLogic.NetUtils, 3.2.7"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeLogic.NetUtils@3.2.7
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeLogic.NetUtils&version=3.2.7
#tool nuget:?package=CodeLogic.NetUtils&version=3.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CL.NetUtils
DNSBL blacklist checking and IP geolocation services for CodeLogic 3 applications, using MaxMind GeoIP2.
Install
dotnet add package CodeLogic.NetUtils
Quick Start
var netUtils = new NetUtilsLibrary();
// After library initialization via CodeLogic framework:
// Check if an IP is blacklisted
var result = await netUtils.Dnsbl.CheckAsync("203.0.113.1");
Console.WriteLine($"Listed: {result.IsListed}");
// Look up IP geolocation
if (netUtils.HasGeoIp)
{
var geo = netUtils.GeoIp.Lookup("203.0.113.1");
Console.WriteLine($"Country: {geo.Country}, City: {geo.City}");
}
Features
- DNSBL checking — query multiple blacklist services (IPv4 and IPv6) with parallel lookups
- IP geolocation — city-level lookups via MaxMind GeoLite2/GeoIP2 databases
- Auto-update — optionally download and refresh the GeoIP database on startup
- Configurable services — primary and fallback DNSBL providers per address family
Configuration
Config file: config.netutils.json
{
"Enabled": true,
"Dnsbl": {
"Enabled": true,
"Ipv4Services": ["zen.spamhaus.org", "dnsbl.sorbs.net"],
"Ipv4FallbackServices": ["b.barracudacentral.org"],
"Ipv6Services": ["zen.spamhaus.org", "dnsbl6.sorbs.net"],
"Ipv6FallbackServices": ["v6.b.barracudacentral.org"],
"TimeoutSeconds": 5,
"ParallelQueries": true,
"DetailedLogging": false
},
"GeoIp": {
"Enabled": true,
"DatabasePath": "",
"AutoUpdate": false,
"AccountId": 0,
"LicenseKey": "",
"DatabaseType": "GeoLite2-City",
"TimeoutSeconds": 30
}
}
Documentation
Full API docs: https://github.com/Media2A/CodeLogic.Libs
Requirements
- .NET 10.0+
- CodeLogic 3.0.0+
- MaxMind.GeoIP2 5.x
- A MaxMind GeoLite2 or GeoIP2 database file (
.mmdb)
License
MIT -- see LICENSE for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeLogic (>= 3.2.7)
- MaxMind.GeoIP2 (>= 5.4.1)
- SharpCompress (>= 0.47.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.5.2 | 88 | 5/24/2026 |
| 4.5.1 | 107 | 5/24/2026 |
| 4.5.1-preview.56 | 80 | 5/24/2026 |
| 4.4.2-preview.53 | 44 | 5/24/2026 |
| 4.4.1 | 95 | 5/24/2026 |
| 4.0.5 | 97 | 5/15/2026 |
| 4.0.4 | 99 | 5/9/2026 |
| 4.0.3 | 98 | 5/9/2026 |
| 4.0.1 | 556 | 4/19/2026 |
| 3.3.2 | 513 | 4/18/2026 |
| 3.3.1 | 97 | 4/18/2026 |
| 3.3.0 | 91 | 4/18/2026 |
| 3.2.11 | 107 | 4/18/2026 |
| 3.2.10 | 102 | 4/18/2026 |
| 3.2.9 | 93 | 4/18/2026 |
| 3.2.8 | 90 | 4/18/2026 |
| 3.2.7 | 92 | 4/18/2026 |
| 3.2.6 | 96 | 4/18/2026 |
| 3.2.5 | 98 | 4/18/2026 |
| 3.2.4 | 92 | 4/17/2026 |
Loading failed