Skip to content

SubdomainHierarchy

Serg edited this page May 26, 2026 · 1 revision

Subdomain Hierarchy

The Subdomain Hierarchy module is a lightweight, local operational module designed to decompose complex subdomains into their constituent hierarchical levels.

Note

This module operates entirely locally using the Public Suffix List. It does not rely on any external APIs, performs no network requests, and has zero execution cost.

Hierarchical Decomposition

The module exclusively accepts Subdomain nodes and intelligently breaks them down to identify the root organizational domain.

For example, if provided the deeply nested subdomain dev.api.staging.example.com, the module will progressively strip the leftmost labels, generating a linear chain of nodes:

  1. api.staging.example.com (Type: Subdomain)
  2. staging.example.com (Type: Subdomain)
  3. example.com (Type: Domain)

Infrastructure Graph Linking

This decomposition is crucial for building a cohesive and connected infrastructure graph. Rather than generating a flat list of subdomains, the module mathematically links each newly generated node to its immediate parent via the Source property. This ensures that deeply nested subdomains are correctly attached back to the main corporate domain, preventing orphaned nodes and maintaining strict structural integrity.

Clone this wiki locally