-
Notifications
You must be signed in to change notification settings - Fork 0
SubdomainHierarchy
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.
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:
-
api.staging.example.com(Type:Subdomain) -
staging.example.com(Type:Subdomain) -
example.com(Type:Domain)
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.