Parsing domain names is not easy. For example, how does one extract Top Level Domain (TLD) data from the address 'me.com.br'? Is the TLD br, or is it com.br? The correct answer is com.br, but how can we know? The answer is that it is not possible to write simple rules in code to determine TLDs with any accuracy. Therefore, a list of all TLDs is maintained at https://publicsuffix.org/.
This software parses domain names into TLD, Second Level Domain (SLD) and host using rules found at https://publicsuffix.org/.
Features of this package include: High performance by using aggressive caching, data redundancy, async logging and async/await compatible methods.
This component is for anyone that needs reliable, accurate and fast domain name parsing.
Install-Package Rsft.Net.DomainParser -Version 1.2.0
dotnet add package Rsft.Net.DomainParser --version 1.2.0
<PackageReference Include="Rsft.Net.DomainParser" Version="1.2.0" />
paket add Rsft.Net.DomainParser --version 1.2.0
Split out core as lightweight implementation.
- Jetbrains.Annotations (>= 2019.1.3)
- Microsoft.Extensions.Caching.Memory (>= 3.0.1)
- Microsoft.Extensions.Logging (>= 3.0.1)
- Rsft.Net.DomainParser.Core (>= 1.0.3)
- System.ComponentModel.Annotations (>= 4.6.0)
- System.Diagnostics.Contracts (>= 4.3.0)
- System.Diagnostics.Process (>= 4.3.0)
- System.Diagnostics.TraceSource (>= 4.3.0)
- System.Linq.Queryable (>= 4.3.0)
- System.Reflection (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.1)
This package is not used by any popular GitHub repositories.