Skip to content

RdapService Class ​

Definition ​

Provides helper methods for performing RDAP queries against public RDAP endpoints.

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

Fields ​

NameDescription
DefaultBootstrapBaseUrlDefault RDAP bootstrap base URL used when a domain is not present in the embedded registry.
DefaultProviderRegistrySourceUrlDefault IANA RDAP provider registry source URL.

Properties ​

NameDescription
ProviderRegistryEntryCountGets the number of TLD labels currently loaded from the embedded provider registry.
ProviderRegistryPublicationGets the publication timestamp declared by the loaded provider registry.

Methods ​

NameDescription
Task<RdapDomainResponse> DomainQueryAsync(DomainProfile profile, CancellationToken cancellationToken = null)Queries RDAP data for a domain profile using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Task<RdapDomainResponse> DomainQueryAsync(Uri uri, CancellationToken cancellationToken = null)Queries RDAP data for a URI host using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Task<RdapDomainResponse> DomainQueryAsync(string domain, CancellationToken cancellationToken = null)Queries RDAP data for a hostname, domain name, or absolute URI using the embedded provider registry when available, falling back to DefaultBootstrapBaseUrl when no registry match exists.
Task<RdapDomainResponse> DomainQueryAsync(string domain, RdapServiceProvider provider, CancellationToken cancellationToken = null)Queries RDAP data for a domain name using the specified service provider.
Task<RdapDomainResponse> DomainQueryAsync(string domain, string serviceBaseUrl, CancellationToken cancellationToken = null)Queries RDAP data for a domain name using the specified RDAP service base URL.
Task<RdapIpNetworkResponse> IpQueryAsync(string ip, CancellationToken cancellationToken = null)Queries RDAP data for an IP address.
bool IsRdapDomain(DomainProfile profile)Returns when the profile registrable domain has an entry in the embedded provider registry.
bool IsRdapDomain(Uri uri)Returns when the URI host's TLD has an entry in the embedded provider registry.
bool IsRdapDomain(string domain)Returns when the domain's TLD has an entry in the embedded provider registry.
RdapProviderRegistryRefreshResult RefreshProviderRegistry(string json)Reloads the embedded RDAP provider registry from JSON content.
Task<RdapProviderRegistryRefreshResult> RefreshProviderRegistryFromSourceAsync(CancellationToken cancellationToken = null)Downloads and reloads the RDAP provider registry from DefaultProviderRegistrySourceUrl.
Task<RdapProviderRegistryRefreshResult> RefreshProviderRegistryFromSourceAsync(string sourceUrl, CancellationToken cancellationToken = null)Downloads and reloads the RDAP provider registry from the specified source URL.
bool TryGetServiceProvider(DomainProfile profile, out RdapServiceProvider provider)Attempts to resolve the authoritative RDAP service provider from a domain profile.
bool TryGetServiceProvider(Uri uri, out RdapServiceProvider provider)Attempts to resolve the authoritative RDAP service provider for a URI host using the embedded provider registry.
bool TryGetServiceProvider(string domain, out RdapServiceProvider provider)Attempts to resolve the authoritative RDAP service provider for a domain name using the embedded provider registry.

Remarks ​

This service supports lookups for domain names and IP addresses using the RDAP protocol. Input values are validated before a request is issued. Invalid input throws an exception immediately rather than making a network call.

A successful request returns a strongly typed RDAP response model.

Failure cases are surfaced through exceptions, including invalid input, missing resources, empty responses, and non-success HTTP status codes.