This tool allows you to scan a range of IP addresses to find open DNS resolvers. It is fast, asynchronous, and highly configurable.
Use this tool responsibly and only on networks you own or have permission to test. The author is not responsible for any misuse of this software.
-
Install the required dependencies:
pip install -r requirements.txt
-
Install
dig:- On Debian/Ubuntu:
sudo apt-get install dnsutils
- On macOS (using Homebrew):
brew install bind
- On Debian/Ubuntu:
-
Configure your scan: Upon running the script for the first time, a
config.jsonfile will be generated (or you can create one manually). You can edit this file to change parameters such as the domain to query (e.g.,gemini.google.com), the number of max threads (max_workers), and the timeout values.Example
config.json:{ "domain_to_query": "gemini.google.com", "max_workers": 100, "timeout": 5, "chunk_size": 30, "max_concurrent_ranges": 3, "input_file": "ip_ranges.txt", "output_file": "responsive_ips.txt" } -
Add IP ranges to
ip_ranges.txt, one per line, in CIDR notation (e.g.,1.1.1.0/24or8.8.8.0/24). -
Run the script:
python dns.py
-
The results will be saved in the configured output file (default is
responsive_ips.txt).
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit issues and pull requests.
Developed by MasterkinG32