Domain Detective

Quick Start

Edit on GitHub

Get started with DomainDetective in minutes.

Install

NuGet Package

dotnet add package DomainDetective

PowerShell Module

Install-Module DomainDetective -Scope CurrentUser

Basic Usage

C#

using DomainDetective;

var healthCheck = new DomainHealthCheck();

// Check SPF
await healthCheck.VerifySPF("example.com");
Console.WriteLine($"SPF Record: {healthCheck.SpfAnalysis.SpfRecord}");

// Check DMARC
await healthCheck.VerifyDMARC("example.com");
Console.WriteLine($"DMARC Policy: {healthCheck.DmarcAnalysis.PolicyShort}");

// Check MX
await healthCheck.VerifyMX("example.com");
foreach (var mx in healthCheck.MXAnalysis.MxRecords) {
    Console.WriteLine($"MX: {mx}");
}

PowerShell

# Import the module
Import-Module DomainDetective

# Run a comprehensive check
$check = Test-DomainHealth -DomainName "example.com"

# View results
$check.SpfAnalysis
$check.DmarcAnalysis
$check.MXAnalysis

Next Steps