Skip to content

DomainProfile Class ​

Definition ​

Describes a hostname, its registrable domain breakdown, and embedded RDAP/WHOIS routing details.

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

Properties ​

NameDescription
HasEmbeddedRdapProviderGets a value indicating whether the registrable domain has an entry in the embedded RDAP provider registry.
HasEmbeddedWhoisServerGets a value indicating whether the IANA root-zone TLD has an entry in the embedded WHOIS server registry.
HostGets the normalized hostname that was evaluated.
IanaTldGets the IANA root-zone TLD label for the registrable domain, such as com or uk.
PublicSuffixGets the public suffix for the hostname, such as com or co.uk.
RdapProviderGets the resolved RDAP service provider when HasEmbeddedRdapProvider is .
RegistrableDomainGets the registrable domain for the hostname, such as example.com or example.co.uk.
SubdomainGets the subdomain prefix relative to RegistrableDomain, such as www,
WhoisServerGets the resolved WHOIS server match when one is known from the embedded registry or,

Methods ​

NameDescription
Task<DomainProfile> CreateAsync(Uri uri, CancellationToken cancellationToken = null)Creates a profile for a URI host and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.
Task<DomainProfile> CreateAsync(string host, CancellationToken cancellationToken = null)Creates a profile for a hostname, domain name, or absolute URI and resolves the WHOIS server using the embedded registry or a live IANA referral lookup when required.
bool TryCreate(Uri uri, out DomainProfile profile)Attempts to create a profile for a URI host using embedded registry data.
bool TryCreate(string host, out DomainProfile profile)Attempts to create a profile for a hostname, domain name, or absolute URI using embedded registry data.

Remarks ​

Use TryCreate for local, embedded registry data. Use CreateAsync when WHOIS server resolution may require a live IANA referral lookup.