CLI tool for resolving DNS names to IP addresses
Top 52.9% on sourcepulse
DomainMapper is a Python-based tool designed to resolve popular web service domain names into IP addresses. It's targeted at network administrators and users who need to map services like Netflix, Google, or Discord to their corresponding IP ranges for network management, firewall configuration, or custom routing. The tool offers flexible output formats and robust IP aggregation capabilities.
How It Works
DomainMapper queries multiple DNS servers for each domain, ensuring comprehensive IP address discovery rather than stopping at the first response. It intelligently filters out duplicate IPs, self-referential IPs, and common placeholders like 0.0.0.0. The tool supports aggregating discovered IP addresses into common subnet masks such as /24 and /16, with an option for a combined /24 + /32 mode, facilitating efficient network rule creation.
Quick Start & Requirements
pip install -r requirements.txt
python main.py
Highlighted Details
Maintenance & Community
The project actively incorporates user requests and contributions, as indicated by numerous "Запрос @" mentions in the changelog. Community interaction appears to be primarily through GitHub issues and discussions.
Licensing & Compatibility
The repository does not explicitly state a license. However, the inclusion of user-contributed IP lists is cautioned against, suggesting a focus on self-generated or verified data. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The lack of a declared open-source license may pose compatibility issues for commercial or closed-source projects. The README emphasizes caution regarding the use of third-party IP lists, implying potential security or reliability concerns with unverified data.
1 month ago
1 day