Skip to content

About

This tool allows you to scan a range of IP addresses to find open DNS resolvers.

Resources

Stars

21 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNS Scanner and Finder

This tool allows you to scan a range of IP addresses to find open DNS resolvers. It is fast, asynchronous, and highly configurable.

Disclaimer

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.

Usage

  1. Install the required dependencies:

    pip install -r requirements.txt
  2. Install dig:

    • On Debian/Ubuntu:
      sudo apt-get install dnsutils
    • On macOS (using Homebrew):
      brew install bind
  3. Configure your scan: Upon running the script for the first time, a config.json file 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"
    }
  4. Add IP ranges to ip_ranges.txt, one per line, in CIDR notation (e.g., 1.1.1.0/24 or 8.8.8.0/24).

  5. Run the script:

    python dns.py
  6. The results will be saved in the configured output file (default is responsive_ips.txt).

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Developer

Developed by MasterkinG32

About

This tool allows you to scan a range of IP addresses to find open DNS resolvers.

Resources

Stars

21 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages