Crate domain_check_lib

Source
Expand description

§Domain Check Library

A fast, robust library for checking domain availability using RDAP and WHOIS protocols.

This library provides both high-level and low-level APIs for domain availability checking, with support for concurrent processing, multiple protocols, and comprehensive error handling.

§Quick Start

use domain_check_lib::{DomainChecker, CheckConfig};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let checker = DomainChecker::new();
    let result = checker.check_domain("example.com").await?;
     
    println!("Domain: {} - Available: {:?}", result.domain, result.available);
    Ok(())
}

§Features

  • RDAP Protocol: Modern registration data access protocol
  • WHOIS Fallback: Automatic fallback when RDAP is unavailable
  • Concurrent Processing: Efficient parallel domain checking
  • Bootstrap Registry: Dynamic RDAP endpoint discovery
  • Configurable: Extensive configuration options

Structs§

CheckConfig
Configuration options for domain checking operations.
DomainChecker
Main domain checker that coordinates availability checking operations.
DomainInfo
Detailed information about a registered domain.
DomainResult
Result of a domain availability check.
LibraryInfo
Information about the library build and features

Enums§

CheckMethod
Method used to check domain availability.
DomainCheckError
Main error type for domain checking operations.
OutputMode
Output mode for displaying results.

Constants§

AUTHOR
VERSION

Functions§

expand_domain_inputs
Expand domain inputs based on smart detection rules.
info
Get library information for debugging or display purposes.
init
Initialize the library with default settings.

Type Aliases§

Result