infrastructure capa

infrastructure-web-domain-intel

Domain/MX/DNS intelligence analyzer implementing foundation-web-analysis::Analyzer -- WHOIS registration lookup (subprocess), live DNS resolution (A/AAAA/MX/TXT/NS/CNAME), IP geolocation, and hosting-provider/CDN detection

Domain/MX/DNS intelligence analyzer implementing foundation-web-analysis::Analyzer -- WHOIS registration lookup (subprocess), live DNS resolution (A/AAAA/MX/TXT/NS/CNAME), IP geolocation, and hosting-provider/CDN detection

Tierinfrastructure
Roleunclassified (baselined)
Pathcrates/infrastructure/web-domain-intel
Edition2021
Targetsinfrastructure_web_domain_intel
Public items20 across 2 modules
Tests36

What it is for

# infrastructure-web-domain-intel

Domain/MX/DNS intelligence analyzer implementing foundation_web_analysis::Analyzer. Runs a WHOIS registration lookup (subprocess), live DNS resolution (A/AAAA/MX/TXT/NS/CNAME), and IP geolocation for a target website's domain, then derives a models::DomainIntelligence snapshot (registrar/registrant, domain age, name servers, DNS records, IP geolocation, inferred hosting provider/CDN).

Lifted from plumber/src/analyzers/domain_analyzer.rs and plumber/src/models/domain_intelligence.rs (sprint 3.46, wave 2 -- see CHANGELOG.md for provenance).

Capabilities

analyzer (other)

Domain/MX/DNS intelligence analyzer.

Item
pub const DEFAULT_MAX_GEO_BYTES: usize
pub const DEFAULT_MAX_WHOIS_BYTES: usize
pub const DEFAULT_WHOIS_TIMEOUT: Duration
pub const DEFAULT_DNS_TIMEOUT: Duration

DomainIntelAnalyzer

Domain/MX/DNS intelligence analyzer.

Item
pub struct DomainIntelAnalyzer
DomainIntelAnalyzer :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>
DomainIntelAnalyzer :: fn with_whois_bin(mut self, bin : impl Into <String>) -> Self
DomainIntelAnalyzer :: fn with_whois_timeout(mut self, timeout : Duration) -> Self
DomainIntelAnalyzer :: fn with_geo_base(mut self, geo_base : & str) -> Self
DomainIntelAnalyzer :: fn with_geo_delay(mut self, delay : Duration) -> Self
DomainIntelAnalyzer :: fn default() -> Self
DomainIntelAnalyzer :: fn name(& self) -> & 'static str
DomainIntelAnalyzer :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
DomainIntelAnalyzer :: fn cache_ttl_days(& self) -> u32

DomainIntelligence

Domain intelligence data model.

Item
pub struct DomainIntelligence
DomainIntelligence :: fn default() -> Self
DomainIntelligence :: fn new(organization_id : Uuid, domain : & str) -> Self
DomainIntelligence :: fn inferred_email_provider(& self) -> Option <String>
DomainIntelligence :: fn detect_cdn(& self) -> Option <String>

MxRecord

Domain intelligence data model.

Item
pub struct MxRecord

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

infrastructure_web_domain_intel

flowchart TD
  n_infrastructure_web_domain_intel["infrastructure_web_domain_intel"]
  n_infrastructure_web_domain_intel --> n_analyzer["analyzer"]
  n_infrastructure_web_domain_intel --> n_models["models"]

Public surface

`analyzer`

ItemWhat it is
pub const DEFAULT_MAX_GEO_BYTES: usizeResponse body byte cap for the IP-geolocation JSON response (Gate 1.5.6 input limit) -- the response is a small fixed-shape JSON object, so this is generous headroom, not a tuned limit.
pub const DEFAULT_MAX_WHOIS_BYTES: usizeStdout byte cap for the WHOIS subprocess (Gate 1.5.6 input limit).
pub const DEFAULT_WHOIS_TIMEOUT: DurationWHOIS subprocess timeout.
pub const DEFAULT_DNS_TIMEOUT: DurationPer-query DNS resolution timeout (matches hickory_resolver::config::ResolverOpts's own default).
pub struct DomainIntelAnalyzerAnalyzer for domain intelligence: WHOIS registration, DNS resolution, and IP geolocation / hosting-provider / CDN detection.
DomainIntelAnalyzer :: fn new() -> std::result::Result <Self, infrastructure_fetcher::SafeHttpError>Build an analyzer with the default WHOIS binary ("whois"), byte caps, DNS timeout (5s, matching ResolverOpts's own default), and geolocation delay (1.5s, matching the source's own IP_API_DELAY/45-req-per-min free-tier rate limit).
DomainIntelAnalyzer :: fn with_whois_bin(mut self, bin : impl Into <String>) -> SelfOverride the WHOIS binary path (allowlisted/configurable; still invoked as a strict argument vector, never a shell).
DomainIntelAnalyzer :: fn with_whois_timeout(mut self, timeout : Duration) -> SelfOverride the WHOIS subprocess timeout.
DomainIntelAnalyzer :: fn with_geo_base(mut self, geo_base : & str) -> SelfOverride the geolocation-endpoint base URL
DomainIntelAnalyzer :: fn with_geo_delay(mut self, delay : Duration) -> SelfOverride the post-geolocation-call rate-limit delay.
DomainIntelAnalyzer :: fn default() -> Self# Panics Panics if the underlying SafeHttpClient cannot be built (TLS backend init failure) -- matches the source's ?-on-construction posture and infrastructure-web-tech-detector/infrastructure-web-backlink-finder's expect-on-construction Default impl.
DomainIntelAnalyzer :: fn name(& self) -> & 'static str
DomainIntelAnalyzer :: async fn analyze(& self, organization_id : Uuid, website_url : & str) -> Result <AnalysisResult>
DomainIntelAnalyzer :: fn cache_ttl_days(& self) -> u32

`models`

ItemWhat it is
pub struct DomainIntelligenceDomain intelligence data from WHOIS, DNS, and IP geolocation lookups
pub struct MxRecordA single MX (mail exchange) record: preference (lower = more preferred) and the mail-server hostname.
DomainIntelligence :: fn default() -> Self
DomainIntelligence :: fn new(organization_id : Uuid, domain : & str) -> Self
DomainIntelligence :: fn inferred_email_provider(& self) -> Option <String>Infer the email provider from the exchange hostnames in mx_records.
DomainIntelligence :: fn detect_cdn(& self) -> Option <String>Detect a CDN from cname_records.

Re-exports. Exported here, defined elsewhere.

ExportDefined in
{DomainIntelAnalyzer,DEFAULT_DNS_TIMEOUT,DEFAULT_MAX_GEO_BYTES,DEFAULT_MAX_WHOIS_BYTES,DEFAULT_WHOIS_TIMEOUT,}analyzer::{DomainIntelAnalyzer,DEFAULT_DNS_TIMEOUT,DEFAULT_MAX_GEO_BYTES,DEFAULT_MAX_WHOIS_BYTES,DEFAULT_WHOIS_TIMEOUT,}
{DomainIntelligence,MxRecord}models::{DomainIntelligence,MxRecord}

Boundary

Reaches into foundation.

Shares tier infrastructure with 82 other crates: infrastructure-acquire, infrastructure-adapters-google-calendar, infrastructure-adapters-google-gmail, infrastructure-adapters-google-places, infrastructure-adapters-google-trends, infrastructure-adapters-shodan, infrastructure-adapters-yelp, infrastructure-agent, … (82 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)infrastructure
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/infrastructure/web-domain-intel
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_infrastructure["infrastructure"] --> n_foundation["foundation"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`foundation-web-analysis`foundationnoalways
`infrastructure-fetcher`infrastructurenoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
async-trait^0.1noalways
chrono^0.4serdenoalways
hickory-resolver^0.26noalways
serde^1derivenoalways
serde_json^1noalways
thiserror^2noalways
tokio^1fullnoalways
tracing^0.1noalways
url^2noalways
uuid^1v4, v7, serde, jsnoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tokio^1full, full, test-utilnoalways
tokio-test^0.4noalways

Build. None.

Depended on by. 1 workspace crate.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  n_application_party_discovery["application-party-discovery"] -->|uses| SELF
  SELF["infrastructure-web-domain-intel"]
  SELF -->|runtime| n_foundation_web_analysis["foundation-web-analysis"]
  SELF -->|runtime| n_infrastructure_fetcher["infrastructure-fetcher"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
libinfrastructure_web_domain_intel`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfaceyes
async runtimeyes
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

1 workspace crate depends on this one: application-party-discovery.

Verification

KindCount
Unit tests36
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
analyzer501
models201

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc1520
Public modules with a //! block22
pie showData
    title Public items with rustdoc
    "Documented" : 15
    "No rustdoc detected" : 5

Metrics

MetricValue
Rust source files3
Source lines1161
Code lines898
Public API items20
Public modules2
Tests36
Examples0
Cargo features0
Direct runtime dependencies12
Workspace reverse dependencies1
pie showData
    title Public API by kind
    "constant" : 4
    "method" : 13
    "struct" : 3
pie showData
    title Rust source composition
    "Code" : 898
    "Blank or comment" : 263

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las infrastructure · Manual