![]() |
VOOZH | about |
dotnet add package Nager.PublicSuffix --version 3.8.0
NuGet\Install-Package Nager.PublicSuffix -Version 3.8.0
<PackageReference Include="Nager.PublicSuffix" Version="3.8.0" />
<PackageVersion Include="Nager.PublicSuffix" Version="3.8.0" />Directory.Packages.props
<PackageReference Include="Nager.PublicSuffix" />Project file
paket add Nager.PublicSuffix --version 3.8.0
#r "nuget: Nager.PublicSuffix, 3.8.0"
#:package Nager.PublicSuffix@3.8.0
#addin nuget:?package=Nager.PublicSuffix&version=3.8.0Install as a Cake Addin
#tool nuget:?package=Nager.PublicSuffix&version=3.8.0Install as a Cake Tool
With so many different endings for domain names, it's hard to know if they're valid or not.
This project uses a list from publicsuffix.org, which keeps track of all the common endings like .com or .org.
It checks domain names against this list to see if they're okay.
Then, it splits the domain into three parts: the ending (like .com), the main part (like google), and any subparts (like www).
You can find the list on GitHub under publicsuffix list repository.
Use a remote source to always work with the latest public suffix list
var ruleProvider = new SimpleHttpRuleProvider();
await ruleProvider.BuildAsync();
var domainParser = new DomainParser(ruleProvider);
var domainInfo = domainParser.Parse("sub.test.co.uk");
//domainInfo.Domain = "test";
//domainInfo.FullyQualifiedDomainName = "sub.test.co.uk";
//domainInfo.RegistrableDomain = "test.co.uk";
//domainInfo.Subdomain = "sub";
//domainInfo.TopLevelDomain = "co.uk";
Use a local public suffix list file to analyze domains
var ruleProvider = new LocalFileRuleProvider("public_suffix_list.dat");
await ruleProvider.BuildAsync();
var domainParser = new DomainParser(ruleProvider);
var domainInfo = domainParser.Parse("sub.test.co.uk");
//domainInfo.Domain = "test";
//domainInfo.FullyQualifiedDomainName = "sub.test.co.uk";
//domainInfo.RegistrableDomain = "test.co.uk";
//domainInfo.Subdomain = "sub";
//domainInfo.TopLevelDomain = "co.uk";
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Nager.PublicSuffix:
| Package | Downloads |
|---|---|
|
DisCatSharp
DisCatSharp Your library to write discord bots in C# with a focus on always providing access to the latest discord features. Written with love and for everyone. |
|
|
Newguys.Sport
Package Description |
|
|
SharpPulsar
SharpPulsar is Apache Pulsar Client built using Akka.net |
|
|
Rsk.AspNetCore.Fido
Allows your ASP.NET Core .NET 8.0 or .NET 9.0 website to act as a FIDO2 Relying Party. Certified by the FIDO Alliance. To purchase a license or get a demo license, contact sales@identityserver.com. |
|
|
AnimeDl
AnimeDl scrapes animes from sites for streaming or downloading. |
Showing the top 6 popular GitHub repositories that depend on Nager.PublicSuffix:
| Repository | Stars |
|---|---|
|
win-acme/win-acme
Automate SSL/TLS certificates on Windows with ease
|
|
|
Flangvik/TeamFiltration
TeamFiltration is a cross-platform framework for enumerating, spraying, exfiltrating, and backdooring O365 AAD accounts
|
|
|
simple-acme/simple-acme
A simple cross platform ACME client (for use with Let's Encrypt et al.)
|
|
|
Stratus-Security/Subdominator
The Internets #1 Subdomain Takeover Tool
|
|
|
Aiko-IT-Systems/DisCatSharp
Your library to write discord apps in C# with focus on always providing access to the latest discord features
|
|
|
kl3mta3/SphereSSL
Web-powered SSL certificate manager with DNS integration, auto-renewals, and cert tracking. It's like if Certbot and ZeroSSL had a baby. Certbot but more friendly, smarter, and with a dashboard.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.8.0 | 124,289 | 3/4/2026 |
| 3.7.0 | 227,115 | 10/27/2025 |
| 3.6.0 | 45,060 | 9/8/2025 |
| 3.5.1 | 2,390 | 9/4/2025 |
| 3.5.0 | 223,568 | 2/25/2025 |
| 3.4.0 | 318,199 | 11/28/2024 |
| 3.3.0 | 512,034 | 5/10/2024 |
| 3.2.0 | 28,427 | 4/8/2024 |
| 3.1.0 | 45,924 | 3/24/2024 |
| 3.0.1 | 16,927 | 2/20/2024 |
| 3.0.0 | 13,221 | 2/15/2024 |
| 2.4.0 | 2,058,929 | 5/31/2022 |
| 2.3.0 | 310,756 | 2/18/2022 |
| 2.2.2 | 893,134 | 2/9/2021 |